mirror of
https://github.com/Dannecron/test-php8-attributes.git
synced 2025-12-25 21:32:35 +03:00
php8-style constuctors
This commit is contained in:
2
cli.php
2
cli.php
@@ -6,8 +6,8 @@ $jokeGuzzle = new \GuzzleHttp\Client([
|
||||
'base_uri' => 'https://v2.jokeapi.dev',
|
||||
]);
|
||||
|
||||
$jokeService = new \App\Service\JokeService($jokeGuzzle);
|
||||
$cache = new \Sarahman\SimpleCache\FileSystemCache(__DIR__ . '/tmp/cache');
|
||||
$jokeService = new \App\Service\JokeService($jokeGuzzle);
|
||||
$jokeOperation = new \App\Operation\JokeOperation($jokeService, $cache);
|
||||
|
||||
$app = new \Ahc\Cli\Application('Joke App', 'v0.0.1');
|
||||
|
||||
Reference in New Issue
Block a user