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;
    }