|
3 | 3 | use Colors\Color;
|
4 | 4 | use function DI\object;
|
5 | 5 | use function DI\factory;
|
| 6 | +use Kadet\Highlighter\KeyLighter; |
6 | 7 | use function PhpSchool\PhpWorkshop\Event\containerListener;
|
7 | 8 | use Interop\Container\ContainerInterface;
|
8 | 9 | use League\CommonMark\DocParser;
|
|
55 | 56 | use PhpSchool\PhpWorkshop\ResultRenderer\Cli\RequestFailureRenderer as CliRequestFailureRenderer;
|
56 | 57 | use PhpSchool\PhpWorkshop\ResultRenderer\Cgi\RequestFailureRenderer as CgiRequestFailureRenderer;
|
57 | 58 | use PhpSchool\PhpWorkshop\Utils\RequestRenderer;
|
58 |
| -use PhpSchool\PSX\Factory as PsxFactory; |
59 | 59 | use PhpSchool\PhpWorkshop\WorkshopType;
|
60 |
| -use PhpSchool\PSX\SyntaxHighlighter; |
61 | 60 | use PhpSchool\PhpWorkshop\Check\FileExistsCheck;
|
62 | 61 | use PhpSchool\PhpWorkshop\Check\FunctionRequirementsCheck;
|
63 | 62 | use PhpSchool\PhpWorkshop\Check\PhpLintCheck;
|
|
279 | 278 | UserState::class => function (ContainerInterface $c) {
|
280 | 279 | return $c->get(UserStateSerializer::class)->deSerialize();
|
281 | 280 | },
|
282 |
| - SyntaxHighlighter::class => factory(PsxFactory::class), |
283 |
| - PsxFactory::class => object(), |
284 | 281 | ResetProgress::class => function (ContainerInterface $c) {
|
285 | 282 | return new ResetProgress($c->get(UserStateSerializer::class));
|
286 | 283 | },
|
@@ -312,11 +309,15 @@ function (CgiResult $result) use ($c) {
|
312 | 309 | $c->get(Color::class),
|
313 | 310 | $c->get(TerminalInterface::class),
|
314 | 311 | $c->get(ExerciseRepository::class),
|
315 |
| - $c->get(SyntaxHighlighter::class), |
| 312 | + $c->get(KeyLighter::class), |
316 | 313 | $c->get(ResultRendererFactory::class)
|
317 | 314 | );
|
318 | 315 | },
|
319 | 316 |
|
| 317 | + KeyLighter::class => function () { |
| 318 | + return new KeyLighter; |
| 319 | + }, |
| 320 | + |
320 | 321 | 'coreContributors' => [
|
321 | 322 | '@AydinHassan' => 'Aydin Hassan',
|
322 | 323 | '@mikeymike' => 'Michael Woodward',
|
|
0 commit comments