added section class. refactored session for ioc usage. improved controller. added yielding and sections to blade. general blade improvements.
This commit is contained in:
@@ -29,6 +29,29 @@ class IoC {
|
||||
return static::$container;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve a core Laravel class from the container.
|
||||
*
|
||||
* <code>
|
||||
* // Resolve the "laravel.router" class from the container
|
||||
* $input = IoC::core('router');
|
||||
*
|
||||
* // Equivalent resolution using the "resolve" method
|
||||
* $input = IoC::resolve('laravel.router');
|
||||
*
|
||||
* // Pass an array of parameters to the resolver
|
||||
* $input = IoC::core('router', array('test'));
|
||||
* </code>
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $parameters
|
||||
* @return mixed
|
||||
*/
|
||||
public static function core($name, $parameters = array())
|
||||
{
|
||||
return static::$container->core($name, $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method for calling methods on the active container instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user