Skip to content

Commit 05116b6

Browse files
committed
Update symfony intergation documentation
1 parent 6f5e788 commit 05116b6

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

docs/integrations/symfony.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff 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

7675
require_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

0 commit comments

Comments
 (0)