mirror of https://github.com/flightphp/core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
382 B
26 lines
382 B
11 months ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace tests\classes;
|
||
|
|
||
|
use flight\Engine;
|
||
|
|
||
|
class ContainerDefault
|
||
|
{
|
||
|
|
||
|
protected Engine $app;
|
||
|
|
||
|
public function __construct(Engine $engine)
|
||
|
{
|
||
|
$engine->set('test_me_out', 'You got it boss!');
|
||
|
$this->app = $engine;
|
||
|
}
|
||
|
|
||
|
public function testTheContainer()
|
||
|
{
|
||
|
return $this->app->get('test_me_out');
|
||
|
}
|
||
|
|
||
|
}
|