Skip to content

Commit

Permalink
Issue #98: Remove obsolete service definition mechanisms.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 10, 2024
1 parent 032ba0d commit 49ab3b0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/src/Util/TestingServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Ock\Ock\OckPackage;
use Ock\Ock\Tests\Fixture\OckTestPackage;
use Psr\Container\ContainerInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;

Expand Down Expand Up @@ -50,19 +49,4 @@ private static function buildContainer(): ContainerInterface {
return $container;
}

/**
* Loads services from a services.php in a package directory.
*
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
* @param string $dir
* Directory where the services.php is found.
* @param string $file
* File name.
*/
protected static function loadPackageServicesPhp(ContainerBuilder $container, string $dir, string $file = 'services.php'): void {
$locator = new FileLocator($dir);
$loader = new PhpFileLoader($container, $locator);
$loader->load($file);
}

}

0 comments on commit 49ab3b0

Please sign in to comment.