mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 19:00:49 +00:00
34 lines
847 B
PHP
34 lines
847 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\NodeVisitor\DependencyInjection\NamedServicesToConstructorRector\Source;
|
|
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
|
|
final class LocalKernel extends Kernel
|
|
{
|
|
/**
|
|
* @return BundleInterface[]
|
|
*/
|
|
public function registerBundles(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader): void
|
|
{
|
|
$loader->load(__DIR__ . '/services.yml');
|
|
}
|
|
|
|
public function getCacheDir(): string
|
|
{
|
|
return sys_get_temp_dir() . '/_rector_tests_local_kernel_cache';
|
|
}
|
|
|
|
public function getLogDir(): string
|
|
{
|
|
return sys_get_temp_dir() . '/_rector_tests_local_kernel_logs';
|
|
}
|
|
}
|