Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A command is an excellent idea! Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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->config
as within a normal controller.Beta Was this translation helpful? Give feedback.
All reactions