File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This bundle integrates PHPStreamServer with the Symfony framework.
1010$ composer require phpstreamserver/symfony
1111```
1212
13- ## Bundle Configuration
13+ ## Runtime Configuration
1414
1515#### Enable the Bundle
1616``` php title="config/bundles.php"
@@ -64,7 +64,6 @@ The following arguments are supported:
6464- ` string $env ` Current environment
6565- ` bool $debug ` Is in debug mode
6666
67-
6867#### Create bin/phpss File
6968``` php title="bin/phpss"
7069#!/usr/bin/env php
@@ -75,30 +74,11 @@ use PHPStreamServer\Symfony\ServerApplication;
7574
7675require_once \dirname(__DIR__) . '/vendor/autoload_runtime.php';
7776
78- return new ServerApplication(static function (array $context) {
77+ return new ServerApplication(static function (array $context): Kernel {
7978 return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
8079});
8180```
8281
83- #### Create bin/console File
84- ``` php title="bin/console"
85- #!/usr/bin/env php
86- <?php
87-
88- use App\Kernel;
89- use PHPStreamServer\Symfony\ConsoleApplication;
90-
91- require_once \dirname(__DIR__) . '/vendor/autoload_runtime.php';
92-
93- return new ConsoleApplication(static function (array $context) {
94- return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
95- });
96- ```
97-
98- ::: info
99- Modifying the ` bin/console ` file is essential to integrate console commands with PHPStreamServer—do not skip this step.
100- :::
101-
10282#### Start the Server
10383``` bash
10484$ bin/phpss start
You can’t perform that action at this time.
0 commit comments