Commit d50638cc by Taylor Otwell

added shortcut for registering controllers in the ioc container.

parent f182ae27
......@@ -71,6 +71,18 @@ class IoC {
}
/**
* Register a controller with the IoC container.
*
* @param string $name
* @param Closure $resolver
* @return void
*/
public static function controller($name, $resolver)
{
static::register("controller: {$name}", $resolver);
}
/**
* Resolve a core Laravel class from the container.
*
* <code>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment