private function resolveParameterWithConfigService(ContainerInterface $container, $requestedName)
    {
        /**
         * @param ReflectionParameter $parameter
         * @return mixed
         * @throws ServiceNotFoundException If type-hinted parameter cannot be
         *   resolved to a service in the container.
         */
        return function (ReflectionParameter $parameter) use ($container, $requestedName) {
            if ($parameter->isArray() && $parameter->getName() === 'config') {
                return $container->get('config');
            }
            return $this->resolveParameter($parameter, $container, $requestedName);
        };
    }
private function resolveParameterWithConfigService(ContainerInterface $container, $requestedName)
    {
        /**
         * @param ReflectionParameter $parameter
         * @return mixed
         * @throws ServiceNotFoundException If type-hinted parameter cannot be
         *   resolved to a service in the container.
         */
        return function (ReflectionParameter $parameter) use ($container, $requestedName) {
            if ($parameter->isArray() && $parameter->getName() === 'config') {
                return $container->get('config');
            }
            return $this->resolveParameter($parameter, $container, $requestedName);
        };
    }
private function resolveParameterWithConfigService ( ContainerInterface $ container , $ requestedName ) { /**
         * @param ReflectionParameter $parameter
         * @return mixed
         * @throws ServiceNotFoundException If type-hinted parameter cannot be
         *   resolved to a service in the container.
         */ return function ( ReflectionParameter $ parameter ) use ( $ container , $ requestedName ) { if ( $ parameter -> isArray ( ) && $ parameter -> getName ( ) === 'config' ) { return $ container -> get ( 'config' ) ; } return $ this -> resolveParameter ( $ parameter , $ container , $ requestedName ) ; } ; }
Returns a callback for resolving a parameter to a value, including mapping 'config' arguments.

Unlike resolveParameter(), this version will detect `$config` array
arguments and have them return the 'config' service.

@param ContainerInterface $container
@param string $requestedName
@return callable
Returns a callback for resolving a parameter to a value including mapping config arguments .