concrete/src/Service/Manager/ServiceManager.php
private function buildService($abstract, $version = '')
    {
        $resolved = null;

        if (is_string($abstract)) {
            // If it's a string, throw it at the IoC container
            $resolved = $this->app->make($abstract, array($version));
        } elseif (is_callable($abstract)) {
            // If it's a callable, lets call it with the application and $this
            $resolved = $abstract($version, $this->app, $this);
        }

        return $resolved;
    }
private function buildService($abstract, $version = '')
    {
        $resolved = null;

        if (is_string($abstract)) {
            // If it's a string, throw it at the IoC container
            $resolved = $this->app->make($abstract, array($version));
        } elseif (is_callable($abstract)) {
            // If it's a callable, lets call it with the application and $this
            $resolved = $abstract($version, $this->app, $this);
        }

        return $resolved;
    }
private function buildService ( $ abstract , $ version = '' ) { $ resolved = null ; if ( is_string ( $ abstract ) ) { // If it's a string, throw it at the IoC container $ resolved = $ this -> app -> make ( $ abstract , array ( $ version ) ) ; } elseif ( is_callable ( $ abstract ) ) { // If it's a callable, lets call it with the application and $this $ resolved = $ abstract ( $ version , $ this -> app , $ this ) ; } return $ resolved ; }
Build a service from an abstract.

@param string|callable $abstract
@param string $version

@return ServiceInterface|null
Build a service from an abstract .