src/Jit/ClassLoader.php
public function patch($options = [])
    {
        $defaults = [
            'patchers'        => null,
            'exclude'         => [],
            'include'         => ['*'],
            'watch'           => [],
            'cachePath'       => rtrim(sys_get_temp_dir(), DS) . DS . 'jit',
            'clearCache'      => false
        ];
        $options += $defaults;

        $this->_patchers = new Patchers();
        $this->_cachePath = rtrim($options['cachePath'], DS);
        $this->_exclude = (array) $options['exclude'];
        $this->_exclude[] = 'jit\\';
        $this->_include = (array) $options['include'];

        if ($options['clearCache']) {
            $this->clearCache();
        }

        if ($options['watch']) {
            $this->watch($options['watch']);
        }
    }
public function patch($options = [])
    {
        $defaults = [
            'patchers'        => null,
            'exclude'         => [],
            'include'         => ['*'],
            'watch'           => [],
            'cachePath'       => rtrim(sys_get_temp_dir(), DS) . DS . 'jit',
            'clearCache'      => false
        ];
        $options += $defaults;

        $this->_patchers = new Patchers();
        $this->_cachePath = rtrim($options['cachePath'], DS);
        $this->_exclude = (array) $options['exclude'];
        $this->_exclude[] = 'jit\\';
        $this->_include = (array) $options['include'];

        if ($options['clearCache']) {
            $this->clearCache();
        }

        if ($options['watch']) {
            $this->watch($options['watch']);
        }
    }
public function patch ( $ options = [ ] ) { $ defaults = [ 'patchers' => null , 'exclude' => [ ] , 'include' => [ '*' ] , 'watch' => [ ] , 'cachePath' => rtrim ( sys_get_temp_dir ( ) , DS ) . DS . 'jit' , 'clearCache' => false ] ; $ options += $ defaults ; $ this -> _patchers = new Patchers ( ) ; $ this -> _cachePath = rtrim ( $ options [ 'cachePath' ] , DS ) ; $ this -> _exclude = ( array ) $ options [ 'exclude' ] ; $ this -> _exclude [ ] = 'jit\\' ; $ this -> _include = ( array ) $ options [ 'include' ] ; if ( $ options [ 'clearCache' ] ) { $ this -> clearCache ( ) ; } if ( $ options [ 'watch' ] ) { $ this -> watch ( $ options [ 'watch' ] ) ; } }
Apply JIT code patching

@param array $options Options for the constructor.
Apply JIT code patching