src/VCR/Videorecorder.php
protected function enableLibraryHooks()
    {
        $self = $this;
        foreach ($this->config->getLibraryHooks() as $hookClass) {
            $hook = $this->factory->get($hookClass);
            $hook->enable(
                function (Request $request) use ($self) {
                    return $self->handleRequest($request);
                }
            );
        }
    }
protected function enableLibraryHooks()
    {
        $self = $this;
        foreach ($this->config->getLibraryHooks() as $hookClass) {
            $hook = $this->factory->get($hookClass);
            $hook->enable(
                function (Request $request) use ($self) {
                    return $self->handleRequest($request);
                }
            );
        }
    }
protected function enableLibraryHooks ( ) { $ self = $ this ; foreach ( $ this -> config -> getLibraryHooks ( ) as $ hookClass ) { $ hook = $ this -> factory -> get ( $ hookClass ) ; $ hook -> enable ( function ( Request $ request ) use ( $ self ) { return $ self -> handleRequest ( $ request ) ; } ) ; } }
Enables configured library hooks.

@api

@return void
Enables configured library hooks .