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
40
40
static ::ensureKernelShutdown ();
41
41
}
42
42
43
- /**
44
- * @return string
45
- */
46
- public static function getKernelClass ()
43
+ public static function getKernelClass (): string
47
44
{
48
45
require_once __DIR__ .'/app/AppKernel.php ' ;
49
46
Original file line number Diff line number Diff line change 7
7
8
8
class AppKernel extends Kernel
9
9
{
10
- /**
11
- * @return array
12
- */
13
- public function registerBundles ()
10
+ public function registerBundles (): iterable
14
11
{
15
12
$ bundles = [
16
13
new \Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
@@ -20,28 +17,28 @@ public function registerBundles()
20
17
return $ bundles ;
21
18
}
22
19
23
- /**
24
- * @return string
25
- */
26
- public function getCacheDir ()
20
+ public function getCacheDir (): string
27
21
{
28
22
return sys_get_temp_dir ().'/EnqueueJobQueue/cache ' ;
29
23
}
30
24
31
- /**
32
- * @return string
33
- */
34
- public function getLogDir ()
25
+ public function getLogDir (): string
35
26
{
36
27
return sys_get_temp_dir ().'/EnqueueJobQueue/cache/logs ' ;
37
28
}
38
29
39
30
public function registerContainerConfiguration (LoaderInterface $ loader )
40
31
{
32
+ if (self ::VERSION_ID < 60000 ) {
33
+ $ loader ->load (__DIR__ .'/config/config-sf5.yml ' );
34
+
35
+ return ;
36
+ }
37
+
41
38
$ loader ->load (__DIR__ .'/config/config.yml ' );
42
39
}
43
40
44
- protected function getContainerClass ()
41
+ protected function getContainerClass (): string
45
42
{
46
43
return parent ::getContainerClass ().'JobQueue ' ;
47
44
}
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:
8
8
test : ~
9
9
assets : false
10
10
session :
11
- storage_id : session.storage.mock_file
11
+ storage_factory_id : session.storage.factory .mock_file
12
12
secret : " %secret%"
13
13
router : { resource: "%kernel.project_dir%/config/routing.yml" }
14
14
default_locale : " %locale%"
Original file line number Diff line number Diff line change 17
17
"phpunit/phpunit" : " ^9.5" ,
18
18
"enqueue/test" : " 0.10.x-dev" ,
19
19
"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 "
24
24
},
25
25
"support" : {
26
26
You can’t perform that action at this time.
0 commit comments