Matias Griese
48170d2fa0
Fixed bin/plugin CLI calling $themes->init() way too early
...
Added `ConsoleCommand::setLanguage()` method to set language to be used from CLI
Added `ConsoleCommand::initializeGrav()` method to properly set up Grav instance to be used from CLI
Added `ConsoleCommand::initializePlugins()`method to properly set up all plugins to be used from CLI
Added `ConsoleCommand::initializeThemes()`method to properly set up current theme to be used from CLI
Added `ConsoleCommand::initializePages()` method to properly set up pages to be used from CLI
2020-02-11 19:41:28 +02:00
Matias Griese
e55b239536
Fixed encoding problems when PHP INI setting default_charset is not utf-8 [ #2154 ]
2020-02-10 09:50:39 +02:00
Djamil Legato
7e1d3b260e
Fixed regression with bin/plugin not listing the plugins available ( 1c725c0)
2019-05-17 23:01:54 -07:00
Andy Miller
1c725c02f0
Better error checking in bin/plugin for existence and enabled
2019-03-05 12:46:48 -07:00
Matias Griese
b2df60647d
Initialize users before plugins on bin/plugin commands
2019-02-14 09:56:11 +02:00
Andy Miller
3e97ecab68
Fixes issue with uninitialized users object
2019-02-13 13:17:21 -07:00
Matias Griese
380b3be928
Added $grav->setup() to simplify CLI and custom access points
2018-11-12 12:21:44 +02:00
Djamil Legato
d70d0b889e
Fixed count of commands list for bin/plugin
2018-11-01 17:18:48 -07:00
Matias Griese
eb97964a00
Debugger optimizations
2018-10-16 13:12:26 +03:00
Andy Miller
18928d6962
Revert "fire onPluginsInitialized event"
...
This reverts commit f7832e78dc .
2018-05-08 09:48:56 -06:00
Andy Miller
f7832e78dc
fire onPluginsInitialized event
2018-05-07 21:32:00 -06:00
Andy Miller
29c6a94c92
Updated to Twig 1.25.0 and fixed an issue that resulted with streams in bin/plugin
2016-09-30 19:02:56 -06:00
Djamil Legato
4401fbc6a6
Improved bin/plugin to list plugins with commands faster by limiting the depth of recursion
2016-09-09 11:56:02 -07:00
Andy Miller
9b94ce6405
Allow environment to be passed to bin/gpm and bin/plugin commands
2016-09-01 15:44:43 -06:00
Matias Griese
24ef246391
Add a way to set environment from CLI
2016-09-01 21:27:08 +03:00
Andy Miller
479e73e950
Some optimizations/cleanup on CLI commands
2016-01-12 10:04:27 -07:00
Flavio Copes
9b85c1b0f7
Remove all hardcoded older PHP required version, use GRAV_PHP_MIN constant instead
...
Thanks @MATsxm for the hint in https://github.com/getgrav/grav/pull/570
2015-12-28 18:46:14 +01:00
Djamil Legato
37035a488d
Fixed bin/plugin help output
2015-11-21 20:53:11 -08:00
Djamil Legato
3d922abf1a
Fixed listing duplicate plugins when multiple commands present.
2015-11-18 16:11:44 -08:00
Djamil Legato
29b34d7de0
Listing all plugins with CLI available. Better helper when empty arguments
2015-11-18 10:40:06 -08:00
Djamil Legato
da098fd46a
Implemented support for Plugins to hook into Grav CLI via bin/plugin <plugin-name>
2015-11-17 19:33:55 -08:00