Add Symfony 6 support
This commit is contained in:
@@ -61,7 +61,6 @@ Feature: Autodiscovering the application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
@@ -85,7 +84,7 @@ Feature: Autodiscovering the application kernel
|
||||
$loader->load(__DIR__ . '/../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
When I run Behat
|
||||
@@ -101,7 +100,6 @@ Feature: Autodiscovering the application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class AppKernel extends HttpKernel
|
||||
{
|
||||
@@ -125,7 +123,7 @@ Feature: Autodiscovering the application kernel
|
||||
$loader->load(__DIR__ . '/../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
When I run Behat
|
||||
@@ -147,7 +145,6 @@ Feature: Autodiscovering the application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
@@ -171,7 +168,7 @@ Feature: Autodiscovering the application kernel
|
||||
$loader->load(__DIR__ . '/../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
And a kernel file "app/AppKernel.php" containing:
|
||||
@@ -183,7 +180,6 @@ Feature: Autodiscovering the application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class AppKernel extends HttpKernel
|
||||
{
|
||||
@@ -207,7 +203,7 @@ Feature: Autodiscovering the application kernel
|
||||
$loader->load(__DIR__ . '/../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
When I run Behat
|
||||
|
||||
@@ -66,7 +66,6 @@ Feature: Loading configured application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
@@ -90,7 +89,7 @@ Feature: Loading configured application kernel
|
||||
$loader->load(__DIR__ . '/../../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
When I run Behat
|
||||
@@ -115,7 +114,6 @@ Feature: Loading configured application kernel
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Kernel as HttpKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class AppKernel extends HttpKernel
|
||||
{
|
||||
@@ -139,7 +137,7 @@ Feature: Loading configured application kernel
|
||||
$loader->load(__DIR__ . '/../../config/services.yaml');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void {}
|
||||
protected function configureRoutes($routes): void {}
|
||||
}
|
||||
"""
|
||||
When I run Behat
|
||||
|
||||
Reference in New Issue
Block a user