public function create(array $options = [])
    {
        $printer = new PrettyPrinter();

        $parser = $this->getParser();

        $options = array_merge(['dir' => true, 'file' => true, 'skip' => false, 'strict' => false], $options);

        $traverser = $this->getTraverser($options['dir'], $options['file'], $options['skip'], $options['strict']);

        return new ClassPreloader($printer, $parser, $traverser);
    }
public function create(array $options = [])
    {
        $printer = new PrettyPrinter();

        $parser = $this->getParser();

        $options = array_merge(['dir' => true, 'file' => true, 'skip' => false, 'strict' => false], $options);

        $traverser = $this->getTraverser($options['dir'], $options['file'], $options['skip'], $options['strict']);

        return new ClassPreloader($printer, $parser, $traverser);
    }
public function create ( array $ options = [ ] ) { $ printer = new PrettyPrinter ( ) ; $ parser = $ this -> getParser ( ) ; $ options = array_merge ( [ 'dir' => true , 'file' => true , 'skip' => false , 'strict' => false ] , $ options ) ; $ traverser = $ this -> getTraverser ( $ options [ 'dir' ] , $ options [ 'file' ] , $ options [ 'skip' ] , $ options [ 'strict' ] ) ; return new ClassPreloader ( $ printer , $ parser , $ traverser ) ; }
Create a new class preloader instance.

Any options provided determine how the node traverser is setup.

@param bool[] $options

@return \ClassPreloader\ClassPreloader
Create a new class preloader instance .