|
32 | 32 | use PhpSchool\PhpWorkshop\Patch; |
33 | 33 | use PhpSchool\PhpWorkshop\ResultAggregator; |
34 | 34 | use PhpSchool\PSX\Factory as PsxFactory; |
| 35 | +use PhpSchool\PhpWorkshop\WorkshopType; |
35 | 36 | use PhpSchool\PSX\SyntaxHighlighter; |
36 | 37 | use PhpSchool\PhpWorkshop\Check\FileExistsCheck; |
37 | 38 | use PhpSchool\PhpWorkshop\Check\FunctionRequirementsCheck; |
|
46 | 47 | use PhpSchool\PhpWorkshop\CommandRouter; |
47 | 48 | use PhpSchool\PhpWorkshop\ExerciseRenderer; |
48 | 49 | use PhpSchool\PhpWorkshop\ExerciseRepository; |
49 | | -use PhpSchool\PhpWorkshop\ExerciseRunner; |
50 | 50 | use PhpSchool\PhpWorkshop\Factory\MarkdownCliRendererFactory; |
51 | 51 | use PhpSchool\PhpWorkshop\MarkdownRenderer; |
52 | 52 | use PhpSchool\PhpWorkshop\ResultRenderer\ResultsRenderer; |
|
58 | 58 |
|
59 | 59 | return [ |
60 | 60 | 'appName' => basename($_SERVER['argv'][0]), |
61 | | - ExerciseDispatcher::class => function (ContainerInterface $c) { |
| 61 | + WorkshopType::class => WorkshopType::STANDARD(), |
| 62 | + ExerciseDispatcher::class => factory(function (ContainerInterface $c) { |
62 | 63 | $dispatcher = new ExerciseDispatcher( |
63 | 64 | $c->get(RunnerFactory::class), |
64 | 65 | $c->get(ResultAggregator::class), |
|
71 | 72 | $dispatcher->requireCheck(PhpLintCheck::class); |
72 | 73 | $dispatcher->requireCheck(CodeParseCheck::class); |
73 | 74 | return $dispatcher; |
74 | | - }, |
| 75 | + }), |
75 | 76 | ResultAggregator::class => object(ResultAggregator::class), |
76 | 77 | CheckRepository::class => function (ContainerInterface $c) { |
77 | 78 | return new CheckRepository([ |
|
0 commit comments