protected function resolveImplicitBindingIfPossible($key, $value, $callbackParameters)
    {
        foreach ($callbackParameters as $parameter) {
            if (! $this->isImplicitlyBindable($key, $parameter)) {
                continue;
            }

            $instance = $parameter->getClass()->newInstance();

            if (! $model = $instance->resolveRouteBinding($value)) {
                throw new AccessDeniedHttpException;
            }

            return $model;
        }

        return $value;
    }
protected function resolveImplicitBindingIfPossible($key, $value, $callbackParameters)
    {
        foreach ($callbackParameters as $parameter) {
            if (! $this->isImplicitlyBindable($key, $parameter)) {
                continue;
            }

            $instance = $parameter->getClass()->newInstance();

            if (! $model = $instance->resolveRouteBinding($value)) {
                throw new AccessDeniedHttpException;
            }

            return $model;
        }

        return $value;
    }
protected function resolveImplicitBindingIfPossible ( $ key , $ value , $ callbackParameters ) { foreach ( $ callbackParameters as $ parameter ) { if ( ! $ this -> isImplicitlyBindable ( $ key , $ parameter ) ) { continue ; } $ instance = $ parameter -> getClass ( ) -> newInstance ( ) ; if ( ! $ model = $ instance -> resolveRouteBinding ( $ value ) ) { throw new AccessDeniedHttpException ; } return $ model ; } return $ value ; }
Resolve an implicit parameter binding if applicable.

@param  string  $key
@param  mixed  $value
@param  array  $callbackParameters
@return mixed

@throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
Resolve an implicit parameter binding if applicable .