Coder Social home page Coder Social logo

vtsykun / cron-bundle Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 5.0 232 KB

:clock3: Docker friendly Symfony Cron Bundle for handling scheduled tasks consistently, parallel or via message queue

License: MIT License

PHP 100.00%
cron-jobs cron-bundle scheduled-tasks lock message-queue symfony-messenger hacktoberfest

cron-bundle's People

Contributors

micronax avatar vtsykun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cron-bundle's Issues

User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultName" for setting a command name is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "Okvpn\Bundle\CronBundle\Command\CronCommand" class instead

Greetings.
PHP 8.2
symfony/framework-bundle : 6.2.5

These deprecations are thrown when running okvpn:cron :

2023-02-17T11:14:58+00:00 [info] User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultName" for setting a command name is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "Okvpn\Bundle\CronBundle\Command\CronCommand" class instead.

2023-02-17T11:14:58+00:00 [info] User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultDescription" for setting a command description is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "Okvpn\Bundle\CronBundle\Command\CronCommand" class instead.

CronUtils::toDate() locale agnostic

This sprintf can produce number like "123,000000" (comma instead of dot) in some locales (ex. pl_PL) and createFromFormat will then fail.

It can be made locale agnostic with:

number_format($unix, 6, '.', '')

[info] User Deprecated: The "Okvpn\Bundle\CronBundle\Loader\ScheduleLoader::getSchedules()" method will require a new "array $options." argument in the next major version of its interface "Okvpn\Bundle\CronBundle\Loader\ScheduleLoaderInterface", not defining it is deprecated

PHP 8.2
symfony/framework-bundle: 6.2.5

The problem is here \Okvpn\Bundle\CronBundle\Loader\ScheduleLoaderInterface::getSchedules in getSchedules() PHPDoc.

Now it is
* @param array $options. Any options, like group.

But it should be:

* @param array $options Any options, like group.

This deprecation is thrown when executing Symfony's cache:clear :

2023-02-17T11:33:40+00:00 [info] User Deprecated: The "Okvpn\Bundle\CronBundle\Loader\ScheduleLoader::getSchedules()" method will require a new "array $options." argument in the next major version of its interface "Okvpn\Bundle\CronBundle\Loader\ScheduleLoaderInterface", not defining it is deprecated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.