app = $engine;
}
public function before(array $params): void
{
echo 'I returned before the route was called with the following parameters: ' . json_encode($params);
}
/** @return mixed */
public function testTheContainer()
{
return $this->app->get('test_me_out');
}
public function echoTheContainer(): void
{
echo $this->app->get('test_me_out');
}
public function testUi(): void
{
echo 'Route text: '
. 'The container successfully injected a value into the engine! Engine class: '
. get_class($this->app)
. ' test_me_out Value: '
. $this->app->get('test_me_out')
. '';
}
}