public function registerHookProviders()
    {
        // load only the enabled hooks
        $hooks = $this->app['hooks']->hooks()->where('enabled', true);
        $loader = AliasLoader::getInstance();

        foreach ($hooks as $hook) {
            // load providers
            foreach ($hook->getProviders() as $provider) {
                $this->app->register($provider);
            }

            // set aliases
            foreach ($hook->getAliases() as $alias => $class) {
                $loader->alias($alias, $class);
            }
        }
    }
public function registerHookProviders()
    {
        // load only the enabled hooks
        $hooks = $this->app['hooks']->hooks()->where('enabled', true);
        $loader = AliasLoader::getInstance();

        foreach ($hooks as $hook) {
            // load providers
            foreach ($hook->getProviders() as $provider) {
                $this->app->register($provider);
            }

            // set aliases
            foreach ($hook->getAliases() as $alias => $class) {
                $loader->alias($alias, $class);
            }
        }
    }
public function registerHookProviders ( ) { // load only the enabled hooks $ hooks = $ this -> app [ 'hooks' ] -> hooks ( ) -> where ( 'enabled' , true ) ; $ loader = AliasLoader :: getInstance ( ) ; foreach ( $ hooks as $ hook ) { // load providers foreach ( $ hook -> getProviders ( ) as $ provider ) { $ this -> app -> register ( $ provider ) ; } // set aliases foreach ( $ hook -> getAliases ( ) as $ alias => $ class ) { $ loader -> alias ( $ alias , $ class ) ; } } }
Register Hook Service Providers.
Register Hook Service Providers .