FluxBB\Validation\ValidationServiceProvider::registerFactory PHP Method

registerFactory() protected method

protected registerFactory ( )
    protected function registerFactory()
    {
        $this->app->singleton('Illuminate\\Contracts\\Validation\\Factory', function () {
            $translator = $this->app->make('Symfony\\Component\\Translation\\TranslatorInterface');
            return new Factory($translator, $this->app);
        });
    }