src/RawPHP/RawContainer/Container.php
protected function getClosure( $abstract, $concrete )
    {
        return function ( $c, $parameters = [ ] ) use ( $abstract, $concrete )
        {
            $method = ( $abstract == $concrete ) ? 'build' : 'make';

            return $c->$method( $concrete, $parameters );
        };
    }
protected function getClosure( $abstract, $concrete )
    {
        return function ( $c, $parameters = [ ] ) use ( $abstract, $concrete )
        {
            $method = ( $abstract == $concrete ) ? 'build' : 'make';

            return $c->$method( $concrete, $parameters );
        };
    }
Get a Closure to be used when building a type.

@param string $abstract
@param string $concrete

@return Closure