feat: modernize, only php 8 support

This commit is contained in:
Christopher Georg 2021-10-01 21:05:47 +02:00
parent 98cccda979
commit fb6a43803f

View file

@ -11,6 +11,7 @@ use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
class IntegrationTest extends TestCase class IntegrationTest extends TestCase
{ {
@ -42,9 +43,15 @@ class IntegrationKernel extends Kernel
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
{ {
$container->setParameter('kernel.secret', '1234'); $container->setParameter('kernel.secret', '1234');
$container->setParameter('router.utf8', 'true');
#$container->setParameter('framework.router.utf8', 'true'); #$container->setParameter('framework.router.utf8', 'true');
} }
#protected function configureRoutes(RouteCollectionBuilder $routes)
protected function configureRoutes(RoutingConfigurator $routes)
{
}
public function getCacheDir(): string public function getCacheDir(): string
{ {
if (null === $this->cacheDir) { if (null === $this->cacheDir) {