diff --git a/.travis.yml b/.travis.yml index 1d57c4f..362950a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,14 @@ matrix: env: SYMFONY_VERSION="3.4.*" - php: 7.3 env: SYMFONY_VERSION="4.4.*" + - php: 7.3 + env: SYMFONY_VERSION="5.0.*" - php: 7.4 env: SYMFONY_VERSION="3.4.*" - php: 7.4 env: SYMFONY_VERSION="4.4.*" + - php: 7.4 + env: SYMFONY_VERSION="5.0.*" before_install: - composer self-update diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index dc69ef8..dbce072 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -31,5 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln('We would have put the following in cron'); $output->write($content = $cron->format()); + + return 0; } } diff --git a/Command/ReplaceCommand.php b/Command/ReplaceCommand.php index 96ba9b7..88e5bab 100644 --- a/Command/ReplaceCommand.php +++ b/Command/ReplaceCommand.php @@ -33,6 +33,8 @@ protected function execute(InputInterface $input, OutputInterface $output) } catch (\RuntimeException $e) { $output->writeln(sprintf('Cron cannot be updated - %s', $e->getMessage())); } + + return 0; } private function getExportKey() diff --git a/README.md b/README.md index 09c62cb..5c5401c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/mybuilder/cronos-bundle.svg?branch=master)](https://travis-ci.org/mybuilder/cronos-bundle) -A bundle for Symfony 3/4 that allows you to use `@Cron` annotations to configure when cron should run your console commands. +A bundle for Symfony 3/4/5 that allows you to use `@Cron` annotations to configure when cron should run your console commands. Uses the [Cronos](https://github.com/mybuilder/cronos) library to do the actual output and updating. @@ -29,7 +29,7 @@ public function registerBundles(): array } ``` -Enable the bundle in the `config/bundles.php` for Symfony 4: +Enable the bundle in the `config/bundles.php` for Symfony 4/5: ```php return [ @@ -39,7 +39,7 @@ return [ ### Configure the bundle -You can add the following to your `config.yml` (Symfony 3) / `packages/my_builder_cronos.yaml` (Symfony 4) to configure the package. +You can add the following to your `config.yml` (Symfony 3) / `packages/my_builder_cronos.yaml` (Symfony 4/5) to configure the package. ```yaml my_builder_cronos: diff --git a/composer.json b/composer.json index 5815cc7..b79e974 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mybuilder/cronos-bundle", - "description": "Symfony 3/4 bundle which allows you to use @Cron annotations to configure cron to run your console commands.", + "description": "Symfony 3/4/5 bundle which allows you to use @Cron annotations to configure cron to run your console commands.", "keywords": ["cron", "cronos"], "minimum-stability": "stable", "license": "MIT", @@ -17,10 +17,10 @@ "require": { "mybuilder/cronos": "~2.0", "doctrine/annotations": "1.*", - "symfony/console": "~3.0||^4.0", - "symfony/framework-bundle": "~3.0||^4.0", - "symfony/yaml": "3.0||^4.0", - "symfony/property-access": "~3.0||^4.0", + "symfony/console": "~3.0||^4.0||^5.0", + "symfony/framework-bundle": "~3.0||^4.0||^5.0", + "symfony/yaml": "3.0||^4.0||^5.0", + "symfony/property-access": "~3.0||^4.0||^5.0", "php": ">=7.3" }, "require-dev": {