Skip to content

Commit c0c3b85

Browse files
committed
Add build / routing / services with a single demo controller.
1 parent a416b4d commit c0c3b85

25 files changed

Lines changed: 3895 additions & 2013 deletions

.github/workflows/integrate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ jobs:
193193
- name: "Install dependencies with composer"
194194
run: "composer install --ansi --no-interaction --no-progress"
195195

196+
- name: "Execute build step"
197+
run: "php bin/build.php"
198+
196199
- name: "Run unit tests with phpunit/phpunit"
197200
run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=unit"
198201

bin/build.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
use phpweb\Framework\Build\BuildTools;
4+
5+
(PHP_SAPI === 'cli') or die("Please run this script using the cli sapi");
6+
7+
require_once __DIR__ . '/../src/autoload.php';
8+
9+
exit(BuildTools::executeBuild());

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
"source": "https://github.com/php/web-php"
99
},
1010
"require": {
11-
"php": "~8.4.0"
11+
"php": "~8.4",
12+
"ext-dom": "*",
13+
"monolog/monolog": "^3.10",
14+
"symfony/config": "^7.4",
15+
"symfony/dependency-injection": "^7.4",
16+
"symfony/http-foundation": "^7.4",
17+
"symfony/http-kernel": "^7.4",
18+
"symfony/routing": "^7.4"
1219
},
1320
"require-dev": {
1421
"ext-curl": "*",
@@ -30,7 +37,7 @@
3037
},
3138
"config": {
3239
"platform": {
33-
"php": "8.4.0"
40+
"php": "8.4.1"
3441
},
3542
"sort-packages": true,
3643
"allow-plugins": {

0 commit comments

Comments
 (0)