src/Container/src/AbstractContainer.php
private function createServiceFactoryFromCallable(Invokable $invokable): Closure
    {
        return function (array $arguments = []) use ($invokable) {
            return $this->invoker->invoke($invokable, $arguments);
        };
    }
private function createServiceFactoryFromCallable(Invokable $invokable): Closure
    {
        return function (array $arguments = []) use ($invokable) {
            return $this->invoker->invoke($invokable, $arguments);
        };
    }
private function createServiceFactoryFromCallable ( Invokable $ invokable ) : Closure { return function ( array $ arguments = [ ] ) use ( $ invokable ) { return $ this -> invoker -> invoke ( $ invokable , $ arguments ) ; } ; }
Create callable factory with resolved arguments from callable.

@param Invokable $invokable
@return Closure
Create callable factory with resolved arguments from callable .