src/DependencyInjection/CacheExtension.php
protected function findServiceIds(array $config, array &$serviceIds)
    {
        foreach ($config as $name => $value) {
            if (is_array($value)) {
                $this->findServiceIds($value, $serviceIds);
            } elseif ($name === 'service_id') {
                $serviceIds[] = $value;
            }
        }
    }
protected function findServiceIds(array $config, array &$serviceIds)
    {
        foreach ($config as $name => $value) {
            if (is_array($value)) {
                $this->findServiceIds($value, $serviceIds);
            } elseif ($name === 'service_id') {
                $serviceIds[] = $value;
            }
        }
    }
protected function findServiceIds ( array $ config , array & $ serviceIds ) { foreach ( $ config as $ name => $ value ) { if ( is_array ( $ value ) ) { $ this -> findServiceIds ( $ value , $ serviceIds ) ; } elseif ( $ name === 'service_id' ) { $ serviceIds [ ] = $ value ; } } }
Find service ids that we configured. These services should be tagged so we can use them in the debug toolbar.

@param array $config
@param array $serviceIds
Find service ids that we configured . These services should be tagged so we can use them in the debug toolbar .