mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
* scheduler first commit * moved jobs to config * got some args working * commands and static methods working.. events hooked up * No longer dependent on `exec()`.. uses Symfony\Process * More improvements * support getAt() * Make inflector available in DI * Fix for inflector * store job run states * more improvements including cron twig function * Add scheduler to event + cleanup * improvements to the CLI command * Added id field * use proper func * Added email * Fix quotes * Updated built-in composer * Better command for adding the scheduler cron via terminal * Fixed typo and added cron language * Added Cron class to make at -> human readable date possible * Added some checks when there are no jobs * Added method to get CronExpression * Revamped with Symfony 4.1 CLI updates
88893 lines
1.8 MiB
Executable File
88893 lines
1.8 MiB
Executable File
#!/usr/bin/env php
|
||
<?php
|
||
/*
|
||
* This file is part of Composer.
|
||
*
|
||
* (c) Nils Adermann <naderman@naderman.de>
|
||
* Jordi Boggiano <j.boggiano@seld.be>
|
||
*
|
||
* For the full copyright and license information, please view
|
||
* the license that is located at the bottom of this file.
|
||
*/
|
||
|
||
// Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264
|
||
if (extension_loaded('apc') && ini_get('apc.enable_cli') && ini_get('apc.cache_by_default')) {
|
||
if (version_compare(phpversion('apc'), '3.0.12', '>=')) {
|
||
ini_set('apc.cache_by_default', 0);
|
||
} else {
|
||
fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);
|
||
fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);
|
||
}
|
||
}
|
||
|
||
Phar::mapPhar('composer.phar');
|
||
require 'phar://composer.phar/bin/composer';
|
||
|
||
__HALT_COMPILER(); ?>
|
||
?” |