src/Core/Core.php
protected function registerService($name, $service)
    {
        $name = strtolower($name);

        if (!isset($this->services->$name)) {
            $this->services->$name = $service;
            return true;
        }
        return false;
    }
protected function registerService($name, $service)
    {
        $name = strtolower($name);

        if (!isset($this->services->$name)) {
            $this->services->$name = $service;
            return true;
        }
        return false;
    }
protected function registerService ( $ name , $ service ) { $ name = strtolower ( $ name ) ; if ( ! isset ( $ this -> services -> $ name ) ) { $ this -> services -> $ name = $ service ; return true ; } return false ; }
Register and instantiate a new service
@param string $name string
@param object $service
@return boolean
Register and instantiate a new service