File tree Expand file tree Collapse file tree 5 files changed +49
-22
lines changed Expand file tree Collapse file tree 5 files changed +49
-22
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,7 @@ protected function tearDown(): void
4040 static ::ensureKernelShutdown ();
4141 }
4242
43- /**
44- * @return string
45- */
46- public static function getKernelClass ()
43+ public static function getKernelClass (): string
4744 {
4845 require_once __DIR__ .'/app/AppKernel.php ' ;
4946
Original file line number Diff line number Diff line change 77
88class AppKernel extends Kernel
99{
10- /**
11- * @return array
12- */
13- public function registerBundles ()
10+ public function registerBundles (): iterable
1411 {
1512 $ bundles = [
1613 new \Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
@@ -20,28 +17,28 @@ public function registerBundles()
2017 return $ bundles ;
2118 }
2219
23- /**
24- * @return string
25- */
26- public function getCacheDir ()
20+ public function getCacheDir (): string
2721 {
2822 return sys_get_temp_dir ().'/EnqueueJobQueue/cache ' ;
2923 }
3024
31- /**
32- * @return string
33- */
34- public function getLogDir ()
25+ public function getLogDir (): string
3526 {
3627 return sys_get_temp_dir ().'/EnqueueJobQueue/cache/logs ' ;
3728 }
3829
3930 public function registerContainerConfiguration (LoaderInterface $ loader )
4031 {
32+ if (self ::VERSION_ID < 60000 ) {
33+ $ loader ->load (__DIR__ .'/config/config-sf5.yml ' );
34+
35+ return ;
36+ }
37+
4138 $ loader ->load (__DIR__ .'/config/config.yml ' );
4239 }
4340
44- protected function getContainerClass ()
41+ protected function getContainerClass (): string
4542 {
4643 return parent ::getContainerClass ().'JobQueue ' ;
4744 }
Original file line number Diff line number Diff line change 1+ parameters :
2+ locale : ' en'
3+ secret : ' ThisTokenIsNotSoSecretChangeIt'
4+
5+ framework :
6+ # esi: ~
7+ # translator: { fallback: "%locale%" }
8+ test : ~
9+ assets : false
10+ session :
11+ # the only option incompatible with Symfony 6
12+ storage_id : session.storage.mock_file
13+ secret : " %secret%"
14+ router : { resource: "%kernel.project_dir%/config/routing.yml" }
15+ default_locale : " %locale%"
16+
17+ doctrine :
18+ dbal :
19+ url : " %env(DOCTRINE_DSN)%"
20+ driver : pdo_mysql
21+ charset : UTF8
22+ wrapper_class : " Enqueue\\ JobQueue\\ Test\\ DbalPersistedConnection"
23+ orm :
24+ auto_generate_proxy_classes : true
25+ auto_mapping : true
26+ mappings :
27+ TestEntity :
28+ mapping : true
29+ type : annotation
30+ dir : ' %kernel.project_dir%/Tests/Functional/Entity'
31+ alias : ' EnqueueJobQueue'
32+ prefix : ' Enqueue\JobQueue\Tests\Functional\Entity'
33+ is_bundle : false
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ framework:
88 test : ~
99 assets : false
1010 session :
11- storage_id : session.storage.mock_file
11+ storage_factory_id : session.storage.factory .mock_file
1212 secret : " %secret%"
1313 router : { resource: "%kernel.project_dir%/config/routing.yml" }
1414 default_locale : " %locale%"
Original file line number Diff line number Diff line change 1717 "phpunit/phpunit" : " ^9.5" ,
1818 "enqueue/test" : " 0.10.x-dev" ,
1919 "doctrine/doctrine-bundle" : " ^2.0" ,
20- "symfony/browser-kit" : " ^4.3|^5" ,
21- "symfony/expression-language" : " ^4.3|^5" ,
22- "symfony/framework-bundle" : " ^4.3|^5" ,
23- "symfony/yaml" : " ^4.3|^5"
20+ "symfony/browser-kit" : " ^4.3|^5|^6.0 " ,
21+ "symfony/expression-language" : " ^4.3|^5|^6.0 " ,
22+ "symfony/framework-bundle" : " ^4.3|^5|^6.0 " ,
23+ "symfony/yaml" : " ^4.3|^5|^6.0 "
2424 },
2525 "support" : {
2626
You can’t perform that action at this time.
0 commit comments