src/Container.php
public function build($definition)
    {
        if (is_callable($definition)) {
            return call_user_func($definition, $this);
        }

        return $this->buildFromDefinition($definition);
    }
public function build($definition)
    {
        if (is_callable($definition)) {
            return call_user_func($definition, $this);
        }

        return $this->buildFromDefinition($definition);
    }
public function build ( $ definition ) { if ( is_callable ( $ definition ) ) { return call_user_func ( $ definition , $ this ) ; } return $ this -> buildFromDefinition ( $ definition ) ; }
Build a definition and return the instantiated object

@param $definition
@return mixed
Build a definition and return the instantiated object