Ejemplo n.º 1
0
 /**
  * Register the core class aliases in the container.
  *
  * @return void
  */
 public function registerCoreContainerAliases()
 {
     parent::registerCoreContainerAliases();
     $aliases = ['actions' => ['LaraPress\\Actions\\Dispatcher'], 'filters' => ['LaraPress\\Filters\\Dispatcher'], 'posts' => ['LaraPress\\Posts\\PostRepository', 'LaraPress\\Contracts\\Posts\\PostRepository'], 'posts.types' => ['LaraPress\\Posts\\PostTypeManager', 'LaraPress\\Contracts\\Posts\\PostTypeManager'], 'taxonomy' => 'LaraPress\\Posts\\Manager'];
     foreach ($aliases as $key => $aliases) {
         foreach ((array) $aliases as $alias) {
             $this->alias($key, $alias);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Register the core class aliases in the container.
  *
  * @return void 
  * @static 
  */
 public static function registerCoreContainerAliases()
 {
     \Illuminate\Foundation\Application::registerCoreContainerAliases();
 }