Skip to content

Commit 5290248

Browse files
committed
Initial lord of the strings exercise
1 parent 493a567 commit 5290248

File tree

7 files changed

+1013
-0
lines changed

7 files changed

+1013
-0
lines changed

app/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use PhpSchool\PHP8Appreciate\Exercise\CautionWithCatches;
2424
use PhpSchool\PHP8Appreciate\Exercise\HaveTheLastSay;
2525
use PhpSchool\PHP8Appreciate\Exercise\PhpPromotion;
26+
use PhpSchool\PHP8AppreciateTest\Exercise\LordOfTheStrings;
2627
use PhpSchool\PhpWorkshop\Application;
2728

2829
$app = new Application('PHP8 Appreciate', __DIR__ . '/config.php');
@@ -31,6 +32,7 @@
3132
$app->addExercise(HaveTheLastSay::class);
3233
$app->addExercise(PhpPromotion::class);
3334
$app->addExercise(CautionWithCatches::class);
35+
$app->addExercise(LordOfTheStrings::class);
3436

3537
$art = <<<ART
3638
_ __ _

app/config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PhpSchool\PHP8Appreciate\Exercise\CautionWithCatches;
66
use PhpSchool\PHP8Appreciate\Exercise\HaveTheLastSay;
77
use PhpSchool\PHP8Appreciate\Exercise\PhpPromotion;
8+
use PhpSchool\PHP8AppreciateTest\Exercise\LordOfTheStrings;
89
use Psr\Container\ContainerInterface;
910
use function DI\create;
1011
use function DI\factory;
@@ -26,4 +27,7 @@
2627
CautionWithCatches::class => function (ContainerInterface $c) {
2728
return new CautionWithCatches($c->get(PhpParser\Parser::class), $c->get(\Faker\Generator::class));
2829
},
30+
LordOfTheStrings::class => function (ContainerInterface $c) {
31+
return new LordOfTheStrings($c->get(\Faker\Generator::class));
32+
},
2933
];

exercises/lord-of-the-strings/problem/problem.md

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "php8-appreciate/lord-of-the-strings",
3+
"description": "String manipulation with Composer",
4+
"require": {
5+
"symfony/console": "^5"
6+
}
7+
}

0 commit comments

Comments
 (0)