Skip to content

Commit

Permalink
Symfony5 support (#36)
Browse files Browse the repository at this point in the history
* Update composer.json

* Update DaemonCommand.php

* Update composer.json

Co-Authored-By: Oliver THEBAULT <Oliboy50@users.noreply.github.com>

* Update composer.json

Co-Authored-By: Oliver THEBAULT <Oliboy50@users.noreply.github.com>

* Update composer.json

Co-Authored-By: Oliver THEBAULT <Oliboy50@users.noreply.github.com>

* Update composer.json

* Update composer.json

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

Co-Authored-By: Oliver THEBAULT <Oliboy50@users.noreply.github.com>

* Update composer.json

Co-authored-by: Oliver THEBAULT <Oliboy50@users.noreply.github.com>
  • Loading branch information
Adrians-G and Oliboy50 committed Mar 10, 2020
1 parent cd1d55f commit 02fd72f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ language: php
php:
- 7.2

before_script:
env:
matrix:
- SYMFONY_VERSION="~4.4"
- SYMFONY_VERSION="~5.0"

before_install:
- wget http://getcomposer.org/composer.phar
- php composer.phar install
- php composer.phar require "symfony/console:${SYMFONY_VERSION}" --no-update
- php composer.phar require "symfony/framework-bundle:${SYMFONY_VERSION}" --no-update
- php composer.phar require "symfony/yaml:${SYMFONY_VERSION}" --no-update

install:
- php composer.phar update --prefer-source --no-interaction

script:
- vendor/bin/phpunit tests/
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"php" : ">=7.2",
"ext-pcntl" : "*",
"psr/event-dispatcher": "^1.0",
"symfony/console" : "~4.3",
"symfony/framework-bundle" : "~4.3",
"symfony/yaml": "~4.3",
"symfony/console" : "~4.4 || ~5.0",
"symfony/framework-bundle" : "~4.4 || ~5.0",
"symfony/yaml": "~4.4 || ~5.0",
"react/event-loop": "@stable"
},
"require-dev" : {
"sensiolabs/security-checker": "^5.0",
"sensiolabs/security-checker": "^6.0",
"phpunit/phpunit": "^8.4"
},
"autoload" : {
Expand All @@ -28,7 +28,7 @@
}
},
"conflict": {
"symfony/event-dispatcher": "<4.3"
"symfony/event-dispatcher": "<4.4"
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DaemonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected function loop(InputInterface $input, OutputInterface $output): void
$this->dispatchEvent(DaemonLoopExceptionGeneralEvent::class);

if ($this->getShowExceptions()) {
$this->getApplication()->renderException($e, $output);
$this->getApplication()->renderThrowable($e, $output);
}

if ($this->getShutdownOnException()) {
Expand Down

0 comments on commit 02fd72f

Please sign in to comment.