public function invoke(Application $application)
{
foreach ($this->get_dependencies() as $t) {
$t->invoke($application);
}
if ($this->has_run) {
return;
}
foreach ($this->before as $t) {
$t($application);
}
foreach ($this->lambdas as $t) {
$t($application);
}
foreach ($this->after as $t) {
$t($application);
}
$this->has_run = true;
}