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

        (new YamlFileLoader($container, new FileLocator((array) $dir)))->load($service_filename.'.yml');
    }