<commit_before><?php

namespace Danack\SlimAurynInvoker;

use Auryn\Injector;
use Pimple\Container;
use Danack\SlimAurynInvoker\SlimAurynInvoker;

class SlimAurynInvokerFactory
{
    /**
     * SlimAurynInvokerFactory constructor.
     * @param Injector $injector
     */
    public function __construct(Injector $injector)
    {
        $this->injector = $injector;
    }

    /**
     * @param Container $container
     * @return \Danack\SlimAurynInvoker\SlimAurynInvoker
     */
    public function __invoke(Container $container)
    {
        return new SlimAurynInvoker($this->injector);
    }
}<commit_msg>Result mappers need to be passed through.<commit_after><?php

namespace Danack\SlimAurynInvoker;

use Auryn\Injector;
use Pimple\Container;
use Danack\SlimAurynInvoker\SlimAurynInvoker;

class SlimAurynInvokerFactory
{
    /** @var Injector  */
    private $injector;

    /** @var array A set of callables that can convert from the type
     * returned by a controller, to a PSR 7 response type
     */
    private $resultMappers;

    /**
     * SlimAurynInvokerFactory constructor.
     * @param Injector $injector
     * @param array|null $resultMappers
     */
    public function __construct(Injector $injector, array $resultMappers = null)
    {
        $this->injector = $injector;
        $this->resultMappers = $resultMappers;
    }

    /**
     * @param Container $container
     * @return \Danack\SlimAurynInvoker\SlimAurynInvoker
     */
    public function __invoke(Container $container)
    {
        return new SlimAurynInvoker($this->injector, $this->resultMappers);
    }
}
{'fraction_non_alphanumeric': 0.09850374064837905, 'fraction_numerical': 0.0006234413965087282, 'mean_word_length': 3.104859335038363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6983549', 'n_tokens_mistral': 532, 'n_tokens_neox': 536, 'n_words': 111}