public static function loadServicesFromXmlFile(Container $container, $dir, $service_filename = null)
    {
        if (null === $service_filename) {
            $service_filename = ContainerBuilder::SERVICE_FILENAME;
        }

        (new XmlFileLoader($container, new FileLocator((array) $dir)))->load($service_filename.'.xml');
    }
public static function loadServicesFromXmlFile(Container $container, $dir, $service_filename = null)
    {
        if (null === $service_filename) {
            $service_filename = ContainerBuilder::SERVICE_FILENAME;
        }

        (new XmlFileLoader($container, new FileLocator((array) $dir)))->load($service_filename.'.xml');
    }
public static function loadServicesFromXmlFile ( Container $ container , $ dir , $ service_filename = null ) { if ( null === $ service_filename ) { $ service_filename = ContainerBuilder :: SERVICE_FILENAME ; } ( new XmlFileLoader ( $ container , new FileLocator ( ( array ) $ dir ) ) ) -> load ( $ service_filename . '.xml' ) ; }
Load services from xml file into your container.

@param Container    $container        the container we want to load services into
@param string|array $dir              directory (or directories) in where we can find services files
@param string|null  $service_filename define the service's filename we want to load,
default: ContainerBuilder::SERVICE_FILENAME
Load services from xml file into your container .