Replies: 3 comments
|
|
0 replies
|
Commands are the normal way to do this. they will run application startup and have anything available to the application itself, including config and helpers. |
0 replies
|
A command is an excellent idea! Thanks. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm developing a bunch of classes that must be able to perform tasks within the application or outside of it, loading the application configuration (
NotYAMLConf). What is the best way to achieve this?I mean, I would like the object to have the configuration injected once it is instantiated, so that it can do
$self->configas within a normal controller.All reactions