File tree Expand file tree Collapse file tree 9 files changed +32
-27
lines changed Expand file tree Collapse file tree 9 files changed +32
-27
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,33 @@ language: php
44
55php :
66 - 7.4
7+ - 8.0
78
89env :
910 global :
10- - deps=high
11+ - XDEBUG_MODE=coverage
12+ - SYMFONY_DEPRECATIONS_HELPER=weak
1113
1214matrix :
1315 fast_finish : true
1416 include :
1517 - php : 7.4
16- env : DEPENDENCIES=beta
17-
18- before_install :
19- - if [ "$DEPENDENCIES" = "beta" ]; then composer config minimum-stability beta; fi;
18+ env : deps=low
19+ - php : 8.0
20+ env : deps=low
2021
2122install :
22- - if [ "$deps" = "no" ]; then composer install; fi
23- - if [ "$deps" = "low" ]; then composer update --prefer-lowest; fi
24- - if [ "$deps" = "high" ]; then composer update; fi
23+ - |
24+ # Installing dependencies ...
25+ if [[ $deps = "low" ]]; then
26+ composer update --prefer-dist --prefer-lowest
27+ else
28+ composer install --prefer-dist
29+ fi
2530
2631script :
2732 - mkdir -p build/logs
2833 - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
2934
3035after_script :
31- - php vendor/bin/coveralls -v
36+ - php vendor/bin/php- coveralls -v
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
1717 */
1818 public function getConfigTreeBuilder ()
1919 {
20- $ treeBuilder = new TreeBuilder ();
21- $ rootNode = $ treeBuilder ->root ( ' w3_c_lifecycle_events ' );
20+ $ treeBuilder = new TreeBuilder (' w3_c_lifecycle_events ' );
21+ $ rootNode = $ treeBuilder ->getRootNode ( );
2222
2323 $ rootNode
2424 ->children ()
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Event ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66
77/**
88 * LifecycleEvent is used when an entity is created
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Event ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66use W3C \LifecycleEventsBundle \Services \LifecycleEventsDispatcher ;
77
88/**
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Tests \Services \Events ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66
77/**
88 * @author Jean-Guilhem Rouel <jean-gui@w3.org>
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Tests \Services \Events ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66
77/**
88 * @author Jean-Guilhem Rouel <jean-gui@w3.org>
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Tests \Services \Events ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66
77/**
88 * @author Jean-Guilhem Rouel <jean-gui@w3.org>
Original file line number Diff line number Diff line change 22
33namespace W3C \LifecycleEventsBundle \Tests \Services \Events ;
44
5- use Symfony \Component \EventDispatcher \Event ;
5+ use Symfony \Contracts \EventDispatcher \Event ;
66
77/**
88 * @author Jean-Guilhem Rouel <jean-gui@w3.org>
Original file line number Diff line number Diff line change 1212 }
1313 ],
1414 "require" : {
15- "php" : " >=7.4" ,
16- "symfony/http-kernel" : " ^4.3 " ,
17- "symfony/config" : " ^4.3 " ,
18- "symfony/dependency-injection" : " ^4.3 " ,
19- "symfony/yaml" : " ^4.3 " ,
20- "symfony/event-dispatcher" : " ^4.3 " ,
15+ "php" : " >=7.4|>=8.0 " ,
16+ "symfony/http-kernel" : " ^4.4|^5.0 " ,
17+ "symfony/config" : " ^4.4|^5.0 " ,
18+ "symfony/dependency-injection" : " ^4.4|^5.0 " ,
19+ "symfony/yaml" : " ^4.4|^5.0 " ,
20+ "symfony/event-dispatcher" : " ^4.4|^5.0 " ,
2121 "doctrine/orm" : " ^2.0" ,
22- "doctrine/persistence" : " ^2.0"
22+ "doctrine/persistence" : " ^1.3|^ 2.0"
2323 },
2424 "require-dev" : {
25- "phpunit/phpunit" : " ^8 .2.3 " ,
26- "symfony/phpunit-bridge" : " ^3.1 " ,
27- "satooshi /php-coveralls" : " ^2.0"
25+ "phpunit/phpunit" : " ^9 .2.4 " ,
26+ "symfony/phpunit-bridge" : " ^4.4|^5.0 " ,
27+ "php-coveralls /php-coveralls" : " ^2.0"
2828 },
2929 "autoload" : {
3030 "psr-4" : {
You can’t perform that action at this time.
0 commit comments