src/Core/Application.php
public function registerConfiguredHooks(string $config = '')
    {
        if (empty($config)) {
            $config = 'app.hooks';
        }

        $hooks = Collection::make($this->config[$config]);

        (new HooksRepository($this))->load($hooks->all());
    }
public function registerConfiguredHooks(string $config = '')
    {
        if (empty($config)) {
            $config = 'app.hooks';
        }

        $hooks = Collection::make($this->config[$config]);

        (new HooksRepository($this))->load($hooks->all());
    }
public function registerConfiguredHooks ( string $ config = '' ) { if ( empty ( $ config ) ) { $ config = 'app.hooks' ; } $ hooks = Collection :: make ( $ this -> config [ $ config ] ) ; ( new HooksRepository ( $ this ) ) -> load ( $ hooks -> all ( ) ) ; }
Register a list of hookable instances.

@param string $config
Register a list of hookable instances .