Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Access grav instance in cli #2

Started by Thierry 9 years ago · 1 replies · 828 views
9 years ago

Hello,

Could anyone explain me how to access
$grav['pages']

in a class extending ConsoleCommand please ?

I failed after a long time on several plugins using CLI 😦 and looking into the previous topic with same name.
(could not comment it).

Thanks for help.

regards,

7 years ago

For reference, this reply covers it.

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 6 days ago
0 111 6 days ago
General · by lynbor, 1 month ago
3 439 2 weeks ago
General · by lynbor, 3 weeks ago
7 562 2 weeks ago
General · by Harry, 2 weeks ago
0 161 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 3 weeks ago