src/DependencyInjection/ResourceExtension.php
private function configureErrorPresentationFactory(array $factoryConfig, ContainerBuilder $container): void
    {
        if ($this->isConfigEnabled($container, $factoryConfig['validation'])) {
            $container->getDefinition('fivelab.resource.error_presentation_factory.validation_failed')
                ->setAbstract(false)
                ->replaceArgument(0, $factoryConfig['validation']['message'])
                ->replaceArgument(1, $factoryConfig['validation']['reason']);
        }
    }
private function configureErrorPresentationFactory(array $factoryConfig, ContainerBuilder $container): void
    {
        if ($this->isConfigEnabled($container, $factoryConfig['validation'])) {
            $container->getDefinition('fivelab.resource.error_presentation_factory.validation_failed')
                ->setAbstract(false)
                ->replaceArgument(0, $factoryConfig['validation']['message'])
                ->replaceArgument(1, $factoryConfig['validation']['reason']);
        }
    }
private function configureErrorPresentationFactory ( array $ factoryConfig , ContainerBuilder $ container ) : void { if ( $ this -> isConfigEnabled ( $ container , $ factoryConfig [ 'validation' ] ) ) { $ container -> getDefinition ( 'fivelab.resource.error_presentation_factory.validation_failed' ) -> setAbstract ( false ) -> replaceArgument ( 0 , $ factoryConfig [ 'validation' ] [ 'message' ] ) -> replaceArgument ( 1 , $ factoryConfig [ 'validation' ] [ 'reason' ] ) ; } }
Configure error presentation factories

@param array            $factoryConfig
@param ContainerBuilder $container
Configure error presentation factories