Cilex\Provider\Console\Command::getService PHP Method

getService() public method

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.
See also: self::getContainer()
public getService ( string $name ) : stdClass | null
$name string Name of the service
return stdClass | null
    public function getService($name)
    {
        return $this->getApplication()->getService($name);
    }