protected function loadHooks(array $services)
    {
        foreach ($services as $service => $value) {
            if (!isset($value[ 'hooks' ])) {
                continue;
            }
            foreach ($value[ 'hooks' ] as $key => $hook) {
                $this->hooks[ $key ][ $service ] = $hook;
            }
        }
    }
protected function loadHooks(array $services)
    {
        foreach ($services as $service => $value) {
            if (!isset($value[ 'hooks' ])) {
                continue;
            }
            foreach ($value[ 'hooks' ] as $key => $hook) {
                $this->hooks[ $key ][ $service ] = $hook;
            }
        }
    }
protected function loadHooks ( array $ services ) { foreach ( $ services as $ service => $ value ) { if ( ! isset ( $ value [ 'hooks' ] ) ) { continue ; } foreach ( $ value [ 'hooks' ] as $ key => $ hook ) { $ this -> hooks [ $ key ] [ $ service ] = $ hook ; } } }
Charge les hooks contenus dans les services.

@param array $services
Charge les hooks contenus dans les services .