Skip to content

Commit 9bce51b

Browse files
authored
Merge pull request #72 from php-school/workshop-v2
Update to php-school/php-workshop v2
2 parents 4ead849 + da6577c commit 9bce51b

File tree

8 files changed

+168
-134
lines changed

8 files changed

+168
-134
lines changed

app/config.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@
5555
}),
5656

5757
'eventListeners' => [
58-
'exercise.selected.hello-world' => [
59-
function () {
60-
if (!file_exists('hello-world.php')) {
61-
touch('hello-world.php');
58+
'create-solution-for-first-exercise' => [
59+
'exercise.selected.hello-world' => [
60+
function () {
61+
if (!file_exists('hello-world.php')) {
62+
touch('hello-world.php');
63+
}
6264
}
63-
}
65+
]
6466
]
6567
]
6668
];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"require" : {
1515
"php" : ">=5.6",
1616
"ext-pdo_sqlite": "*",
17-
"php-school/php-workshop": "^1.2",
17+
"php-school/php-workshop": "^2.0",
1818
"hoa/socket": "^1.0",
1919
"php-school/workshop-installer": "^0.1"
2020
},

0 commit comments

Comments
 (0)