GithubHelp home page GithubHelp logo

daemonbundle's People

Contributors

adrians-g avatar alexsegura avatar benji07 avatar cedcannes avatar docroms avatar fabdsp avatar fgibaux avatar haflit21 avatar jubianchi avatar lnahiro avatar lyrixx avatar meroje avatar mguillermin avatar oliboy50 avatar omansour avatar sdechomets avatar t-geindre avatar valentin-claras avatar

Stargazers

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

Watchers

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

daemonbundle's Issues

Work without event_dispatcher

The DaemonCommand should check if event_dispatcher service is available before get it.

Then, code which use this event dispatcher should check if it's not null before call methods on it.

Also, EventDispacther should be set in the Daemon method.

Update installation insctructions

Installation instructions needs an update to work with my app using Symfony 2.8.8.
The file M6WebDaemonBundle.php required by my AppKernel is appears only since V 1.2.0.

Installation (that works for me)

Via composer :

"require": {
    "m6web/daemon-bundle":"1.4.*"
}

then enable the bundle in your kernel:

<?php

$bundles = [
    new M6Web\Bundle\DaemonBundle\M6WebDaemonBundle()
];

Symfony5 support

Hi guys, do you plan to support this library for Symfony5?

Are there any changes except composer.json needed?

Read parameter only if it's available

Here: https://github.com/M6Web/DaemonBundle/blob/master/src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php#L510

The command try to read the m6web_daemon.iterations_events. But, if the bundle is not enabled in the Kernel, this parameter won't be available.

You can use DaemonCommand without enabling the bundle in the Kernel. It is only required if you want the command to trigger events each X iterations (should also be documented if it's not).

So, the command should check if m6web_daemon.iterations_events parameter is available before read it.

Update for Symfony 7.x

Hello,

I was trying to update my app to Symfony 7.x.
After a "composer update -W" with all Symfony dependencies targeted to ^7.0, I had some composer conflicts :

Problem 1
  - m6web/daemon-bundle v7.0.0 requires symfony/console ~6.1 -> found symfony/console[v6.1.0, ..., v6.4.4] but it conflicts with your root composer.json require (^7.0).
  - mfy/daemon-command[4.0.0, ..., 4.0.2] require m6web/daemon-bundle ^7.0 -> satisfiable by m6web/daemon-bundle[v7.0.0].
  - Root composer.json requires mfy/daemon-command ^4.0 -> satisfiable by mfy/daemon-command[4.0.0, 4.0.1, 4.0.2].

Is it planned to update DaemonBundle for Symfony 7.x ?

Thanks!

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.