Download the PHP package mintware-de/native-cron-bundle without Composer
On this page you can find all versions of the php package mintware-de/native-cron-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mintware-de/native-cron-bundle
More information about mintware-de/native-cron-bundle
Files in mintware-de/native-cron-bundle
Package native-cron-bundle
Short Description A Symfony bundle for mintware-de/native-cron
License MIT
Informations about the package native-cron-bundle
Native Cron Bundle
This package provides a Symfony Bundle for the mintware-de/native-cron
package.
The main purpose is easily managing cron jobs for your application.
Installation
Since cron jobs stored differently based on the operating system, you've to set the CrontabFileLocatorInterface
in your service definition.
This bundle will only work with drop-in crontab files. So make sure that the implementation supports that feature.
Requirements
- PHP 8.1+
- Symfony 6.1
Usage
Mark Commands as Cronjobs
After installing the bundle you can use the #[CronJob(...)]
annotation (MintwareDe\NativeCronBundle\Attribute\CronJob
)
on your console commands.
This annotation accepts 2-5 arguments:
List / Install / Uninstall
You can use the Symfony console to list, install and uninstall the cron jobs. Remember: Install and uninstall may require higher user privileges! (su root / sudo etc.)
List
Install
Uninstall
All versions of native-cron-bundle with dependencies
mintware-de/native-cron Version ^1.1.2
symfony/http-kernel Version ^6.1
symfony/dependency-injection Version ^6.1
symfony/config Version ^6.1