src/Factory.php
protected function getFactories()
    {
        $escaper = $this->escaper;
        $input   = (new AuraFactory())->newInputInstance();

        $factories = [
            'escape' => function () use ($escaper) {
                return $escaper;
            },
            'input' => function () use ($input) {
                return $input;
            }
        ];

        foreach ($this->helpers as $name => $class) {
            $factories[$name] = function () use ($class, $escaper) {
                return new $class($escaper);
            };
        }

        return $factories;
    }
protected function getFactories()
    {
        $escaper = $this->escaper;
        $input   = (new AuraFactory())->newInputInstance();

        $factories = [
            'escape' => function () use ($escaper) {
                return $escaper;
            },
            'input' => function () use ($input) {
                return $input;
            }
        ];

        foreach ($this->helpers as $name => $class) {
            $factories[$name] = function () use ($class, $escaper) {
                return new $class($escaper);
            };
        }

        return $factories;
    }
protected function getFactories ( ) { $ escaper = $ this -> escaper ; $ input = ( new AuraFactory ( ) ) -> newInputInstance ( ) ; $ factories = [ 'escape' => function ( ) use ( $ escaper ) { return $ escaper ; } , 'input' => function ( ) use ( $ input ) { return $ input ; } ] ; foreach ( $ this -> helpers as $ name => $ class ) { $ factories [ $ name ] = function ( ) use ( $ class , $ escaper ) { return new $ class ( $ escaper ) ; } ; } return $ factories ; }
create array of factories

@return array<*,\Closure>

@access protected
create array of factories