-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as not planned
Description
Description
In my opinion, attributes usage is expanding and adding variables handling or at least $_ENV handling could prove very useful.
#[AsCronTask(expression: '0 */1 * * *', schedule: 'status_updater')]
public class Task{}
As you can see in this exemple, I would love to put this expression in an env var but I think it's not doable right now.
#[AsCronTask(expression: $_ENV['TASK_FREQUENCE'], schedule: 'status_updater')]
public class Task{}
Can you maybe give an explanation on why this is not doable. And if it is doable could it be added ?
lchalamaud and copimentel