src/Config/Loader/ClassLoader/Resolver/ConstructorResolver.php
protected function configureOptions(OptionsResolver $optionsResolver)
    {
        foreach ($this->constructorArgs as $name => $param) {
            if ($param->isOptional() && $param->isDefaultValueAvailable()) {
                $optionsResolver->setDefault($name, $param->getDefaultValue());
            } else {
                $optionsResolver->setRequired($name);
            }
        }
    }
protected function configureOptions(OptionsResolver $optionsResolver)
    {
        foreach ($this->constructorArgs as $name => $param) {
            if ($param->isOptional() && $param->isDefaultValueAvailable()) {
                $optionsResolver->setDefault($name, $param->getDefaultValue());
            } else {
                $optionsResolver->setRequired($name);
            }
        }
    }
protected function configureOptions ( OptionsResolver $ optionsResolver ) { foreach ( $ this -> constructorArgs as $ name => $ param ) { if ( $ param -> isOptional ( ) && $ param -> isDefaultValueAvailable ( ) ) { $ optionsResolver -> setDefault ( $ name , $ param -> getDefaultValue ( ) ) ; } else { $ optionsResolver -> setRequired ( $ name ) ; } } }
Configure options for the provided OptionResolver to match contructor args requirements

@param  OptionsResolver $optionsResolver OptionResolver to configure
Configure options for the provided OptionResolver to match contructor args requirements