Request/ParamConverter/ServiceParamConverter.php
private function getCallable(array $options)
    {
        $serviceId = $options['service'];
        $method = $options['method'];
        $service = $this->container->get($serviceId);
        $callable = [$service, $method];

        if (!is_callable($callable)) {
            throw new \InvalidArgumentException(sprintf(
                'The param converter is configured to use a non existent method "%s::%s()" on the "%s" service.',
                get_class($service), $method, $serviceId
            ));
        }

        return $callable;
    }
private function getCallable(array $options)
    {
        $serviceId = $options['service'];
        $method = $options['method'];
        $service = $this->container->get($serviceId);
        $callable = [$service, $method];

        if (!is_callable($callable)) {
            throw new \InvalidArgumentException(sprintf(
                'The param converter is configured to use a non existent method "%s::%s()" on the "%s" service.',
                get_class($service), $method, $serviceId
            ));
        }

        return $callable;
    }
private function getCallable ( array $ options ) { $ serviceId = $ options [ 'service' ] ; $ method = $ options [ 'method' ] ; $ service = $ this -> container -> get ( $ serviceId ) ; $ callable = [ $ service , $ method ] ; if ( ! is_callable ( $ callable ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The param converter is configured to use a non existent method "%s::%s()" on the "%s" service.' , get_class ( $ service ) , $ method , $ serviceId ) ) ; } return $ callable ; }
@param array $options

@return array
@param array $options