Returns an array of resources loaded to build this configuration.
public getResources ( ) : Symfony\Component\Config\Resource\ResourceInterface[] | ||
return | Symfony\Component\Config\Resource\ResourceInterface[] | An array of resources |
use Symfony\Component\DependencyInjection\ContainerBuilder; $container = new ContainerBuilder(); $resources = $container->getResources(); foreach ($resources as $resource) { echo $resource . "\n"; }This example creates a new ContainerBuilder instance and calls the getResources() method to get an array of resources. It then loops through these resources and outputs them. The package library for this code example is the Symfony Dependency Injection package.
public getResources ( ) : Symfony\Component\Config\Resource\ResourceInterface[] | ||
return | Symfony\Component\Config\Resource\ResourceInterface[] | An array of resources |