Symfony\Component\DependencyInjection\ContainerBuilder::getServiceIds PHP Method

getServiceIds() public method

Gets all service ids.
public getServiceIds ( ) : array
return array An array of all defined service ids
    public function getServiceIds()
    {
        return array_unique(array_merge(array_keys($this->getDefinitions()), array_keys($this->aliasDefinitions), parent::getServiceIds()));
    }

Usage Example

 public function testConfig()
 {
     $this->createFullConfiguration();
     $this->assertParameter('foo_key', 'freshdesk_api_key');
     $this->assertParameter('bar_domain', 'freshdesk_domain');
     $this->assertContains('freshdesk', $this->containerBuilder->getServiceIds());
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ContainerBuilder::getServiceIds