Skip to content

Commit c905eb1

Browse files
committed
Merge branch 'master' into develop
2 parents 2ddd156 + eb88869 commit c905eb1

20 files changed

+1058
-185
lines changed

CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
4+
5+
## [Unreleased][unreleased]
6+
### Added
7+
8+
### Changed
9+
10+
### Fixed
11+
12+
### Removed
13+
14+
## [1.2.0]
15+
16+
### Added
17+
- Added ability to register event listeners via config as either callables or the name of a callable container entry (#133)
18+
- Added an event dispatch for whenever an exercise is selected via the menu (#134)
19+
20+
## [1.1.0]
21+
### Fixed
22+
- Menu items now update the status when progress is reset (#131, #86)
23+
- Added tests for ResultRendererFactory and fixed the interface validation (#126)
24+
25+
### Changed
26+
- Improved message when a solution fails (#129)
27+
28+
### Added
29+
- Added feature to put workshop in tutorial mode where exercises must be completed one after another (#127)
30+
- Updated dependencies (5d16877)
31+
- Added list support to markdown problem files (#132)

app/config.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
use PhpSchool\PhpWorkshop\Patch;
3333
use PhpSchool\PhpWorkshop\ResultAggregator;
3434
use PhpSchool\PSX\Factory as PsxFactory;
35+
use PhpSchool\PhpWorkshop\WorkshopType;
3536
use PhpSchool\PSX\SyntaxHighlighter;
3637
use PhpSchool\PhpWorkshop\Check\FileExistsCheck;
3738
use PhpSchool\PhpWorkshop\Check\FunctionRequirementsCheck;
@@ -46,7 +47,6 @@
4647
use PhpSchool\PhpWorkshop\CommandRouter;
4748
use PhpSchool\PhpWorkshop\ExerciseRenderer;
4849
use PhpSchool\PhpWorkshop\ExerciseRepository;
49-
use PhpSchool\PhpWorkshop\ExerciseRunner;
5050
use PhpSchool\PhpWorkshop\Factory\MarkdownCliRendererFactory;
5151
use PhpSchool\PhpWorkshop\MarkdownRenderer;
5252
use PhpSchool\PhpWorkshop\ResultRenderer\ResultsRenderer;
@@ -58,6 +58,7 @@
5858

5959
return [
6060
'appName' => basename($_SERVER['argv'][0]),
61+
WorkshopType::class => WorkshopType::STANDARD(),
6162
ExerciseDispatcher::class => function (ContainerInterface $c) {
6263
return new ExerciseDispatcher(
6364
$c->get(RunnerFactory::class),
@@ -239,10 +240,7 @@
239240
SyntaxHighlighter::class => factory(PsxFactory::class),
240241
PsxFactory::class => object(),
241242
ResetProgress::class => function (ContainerInterface $c) {
242-
return new ResetProgress(
243-
$c->get(UserStateSerializer::class),
244-
$c->get(OutputInterface::class)
245-
);
243+
return new ResetProgress($c->get(UserStateSerializer::class));
246244
},
247245
ResultRendererFactory::class => object(),
248246
ResultsRenderer::class => function (ContainerInterface $c) {

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"symfony/process": "^2.3|^3.0",
2424
"symfony/filesystem": "^2.3|^3.0",
2525
"fzaninotto/faker": "^1.5",
26-
"aydin-hassan/cli-md-renderer": "^2.0",
26+
"aydin-hassan/cli-md-renderer": "^2.1",
2727
"php-school/psx": "~1.0",
28-
"php-school/cli-menu": "^1.0.3",
28+
"php-school/cli-menu": "^2.0",
2929
"beberlei/assert": "^2.4",
3030
"psr/http-message": "^1.0",
3131
"zendframework/zend-diactoros": "^1.1.3",

0 commit comments

Comments
 (0)