Bind Linux System Events (cron, init) with Symfony Event.
###AppKernel
add this to your registerBundles() on AppKernel :
new box4b\SystemBundle\SystemBundle()
###For Cron
Create a /etc/cron.d/box4bsystem file containing :
* * * * * [YOUR_USER] /usr/bin/php [PATH_TO_SYMFONY_PROJECT]/app/console box4b:cron --env=prod > /dev/null 2> /dev/null
###For Init / Systemd
Create a file calling /usr/bin/php [PATH_TO_SYMFONY_PROJECT]/app/console box4b:init [start|stop]
Use Symfony Event Listener System to listen for events :
###Init
###Cron
Enjoy :)
How can I help you explore Laravel packages today?