public function getService($name)
    {
        return isset($this->container[$name]) ? $this->container[$name] : null;
    }
public function getService($name)
    {
        return isset($this->container[$name]) ? $this->container[$name] : null;
    }
public function getService ( $ name ) { return isset ( $ this -> container [ $ name ] ) ? $ this -> container [ $ name ] : null ; }
Returns a service contained in the application container or null if none
is found with that name.

This is a convenience method used to retrieve an element from the
Application container without having to assign the results of the
getContainer() method in every call.

@param string $name Name of the service

@see self::getContainer()

@return mixed
Returns a service contained in the application container or null if none is found with that name .