File tree 6 files changed +31
-17
lines changed
6 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
php :
13
- name : " PHP ${{ matrix.php-version }} Symfony ${{ matrix.symfony-version }}"
13
+ name : " PHP ${{ matrix.php-version }} Symfony ${{ matrix.symfony-version }} ${{ matrix.dependencies}} "
14
14
runs-on : ubuntu-latest
15
15
16
16
env :
17
17
KERNEL_CLASS : PHPCR\PhpcrMigrationsBundle\Tests\Resources\App\AppKernel
18
+ SYMFONY_REQUIRE : ${{ matrix.symfony-version }}
18
19
19
20
strategy :
20
21
fail-fast : false
24
25
symfony-version : ' ^5.4'
25
26
26
27
- php-version : ' 8.1'
27
- symfony-version : ' 6.0.*'
28
+ symfony-version : ' ^6.0'
29
+ dependencies : ' lowest'
30
+
31
+ - php-version : ' 8.1'
32
+ symfony-version : ' ^6.4'
28
33
29
34
- php-version : ' 8.2'
30
35
@@ -43,11 +48,11 @@ jobs:
43
48
ini-values : memory_limit=-1
44
49
coverage : none
45
50
46
- - name : Composer update
47
- env :
48
- SYMFONY_REQUIRE : ${{ matrix.symfony-version }}
49
- run : |
50
- composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction --no-progress
51
+ - name : Install dependencies with Composer
52
+ uses : ramsey/composer-install@v3
53
+ with :
54
+ dependency-versions : ${{ matrix.dependencies }}
55
+ composer-options : --prefer-dist
51
56
52
57
- name : Prepare phpcr odm doctrine dbal
53
58
run : vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ CHANGELOG
10
10
* Deprecate using ` Symfony\Component\DependencyInjection\ContainerAwareInterface ` in favor of
11
11
` PHPCR\PhpcrMigrationsBundle\ContainerAwareInterface ` as Symfony 7 dropped its
12
12
ContainerAwareInterface.
13
- On Symfony 6, the legacy ContainerAwareInterface continues to e supported.
13
+ On Symfony 6, the legacy ContainerAwareInterface continues to be supported.
14
14
15
15
1.5.0
16
16
-----
Original file line number Diff line number Diff line change 1
1
{
2
-
3
2
"name" : " phpcr/phpcr-migrations-bundle" ,
4
3
"description" : " PHPCR migrations bundle" ,
5
4
"license" : " MIT" ,
24
23
"symfony/http-kernel" : " ^5.4 || ^6.0 || ^7.0"
25
24
},
26
25
"require-dev" : {
27
- "doctrine/doctrine-bundle" : " ^1.8 || ^2.0 " ,
26
+ "doctrine/doctrine-bundle" : " ^1.8 || ^2.5 " ,
28
27
"doctrine/phpcr-odm" : " ^1.4 || ^2.0" ,
29
- "doctrine/annotations" : " ^2.0" ,
28
+ "doctrine/annotations" : " ^1.14 || ^ 2.0" ,
30
29
"jackalope/jackalope-doctrine-dbal" : " ^1.4 || ^2.0" ,
31
30
"symfony/monolog-bundle" : " ^3.0" ,
32
31
"symfony/phpunit-bridge" : " ^7.0.6" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
38
38
{
39
39
$ loader ->import (CMF_TEST_CONFIG_DIR .'/default.php ' );
40
40
$ loader ->import (CMF_TEST_CONFIG_DIR .'/phpcr_odm.php ' );
41
- $ loader ->load (__DIR__ .'/config/config.yml ' );
41
+ $ loader ->load (__DIR__ .'/config/config.php ' );
42
42
}
43
43
44
44
protected function prepareContainer (ContainerBuilder $ container ): void
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ frameworkConfig = [
4
+ 'property_access ' => true ,
5
+ ];
6
+
7
+ if (class_exists (\Symfony \Component \Validator \Mapping \Loader \AnnotationLoader::class)) {
8
+ // Symfony < 7
9
+ $ frameworkConfig ['annotations ' ] = true ;
10
+ }
11
+
12
+ $ container ->loadFromExtension ('framework ' , $ frameworkConfig );
13
+ $ container ->loadFromExtension ('phpcr_migrations ' , [
14
+ 'version_node_name ' => 'jcr:migrations ' ,
15
+ ]);
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments