private function getServiceList($tag = null)
    {
        if ($tag) {
            return $this->getServiceListByTag($tag);
        }

        $services = [];
        $serviceDefinitions = $this->container->getDefinitions();

        foreach ($serviceDefinitions as $serviceId => $serviceDefinition) {
            $services[] = [$serviceId, $serviceDefinition->getClass()];
        }
        usort($services, [$this, 'compareService']);
        return $services;
    }
private function getServiceList($tag = null)
    {
        if ($tag) {
            return $this->getServiceListByTag($tag);
        }

        $services = [];
        $serviceDefinitions = $this->container->getDefinitions();

        foreach ($serviceDefinitions as $serviceId => $serviceDefinition) {
            $services[] = [$serviceId, $serviceDefinition->getClass()];
        }
        usort($services, [$this, 'compareService']);
        return $services;
    }
private function getServiceList ( $ tag = null ) { if ( $ tag ) { return $ this -> getServiceListByTag ( $ tag ) ; } $ services = [ ] ; $ serviceDefinitions = $ this -> container -> getDefinitions ( ) ; foreach ( $ serviceDefinitions as $ serviceId => $ serviceDefinition ) { $ services [ ] = [ $ serviceId , $ serviceDefinition -> getClass ( ) ] ; } usort ( $ services , [ $ this , 'compareService' ] ) ; return $ services ; }
Get service list.

@param string $tag
Tag.

@return array
Array of services.
Get service list .