Exemplo n.º 1
0
 public function register()
 {
     $this->app->instance(__CLASS__, $this);
     $this->app->alias(__CLASS__, $this->containerName);
     $this->blade->directive('include_layout', function ($expr) {
         return "<?php echo app('{$this->containerName}')->renderLayout{$expr} ?>";
     });
 }
Exemplo n.º 2
0
 /**
  * Alias a type to a different name.
  *
  * @param string $abstract
  * @param string $alias
  * @return void 
  * @static 
  */
 public static function alias($abstract, $alias)
 {
     //Method inherited from \Illuminate\Container\Container
     \Illuminate\Foundation\Application::alias($abstract, $alias);
 }