Skip to content

Commit 4b45f15

Browse files
committed
Rename
1 parent 716a1d1 commit 4b45f15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+129
-129
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# PhpRunner runtime for symfony applications
1+
# PHPStreamServer runtime for symfony applications
22
![PHP >=8.2](https://img.shields.io/badge/PHP->=8.2-777bb3.svg?style=flat)
33
![Symfony ^7.0](https://img.shields.io/badge/Symfony-^7.0-374151.svg?style=flat)
4-
[![Version](https://img.shields.io/github/v/tag/luzrain/phprunner-bundle?label=Version&filter=v*.*.*&sort=semver&color=374151)](../../releases)
5-
[![Tests Status](https://img.shields.io/github/actions/workflow/status/luzrain/phprunner-bundle/tests.yaml?label=Tests&branch=master)](../../actions/workflows/tests.yaml)
4+
[![Version](https://img.shields.io/github/v/tag/luzrain/phpstreamserver-bundle?label=Version&filter=v*.*.*&sort=semver&color=374151)](../../releases)
5+
[![Tests Status](https://img.shields.io/github/actions/workflow/status/luzrain/phpstreamserver-bundle/tests.yaml?label=Tests&branch=master)](../../actions/workflows/tests.yaml)
66

7-
This bundle provides a [PhpRunner](https://github.com/luzrain/phprunner) integration with Symfony framework to run your application in a highly efficient event-loop based runtime.
7+
This bundle provides a [PHPStreamServer](https://github.com/luzrain/phpstreamserver) integration with Symfony framework to run your application in a highly efficient event-loop based runtime.
88

99
## Getting started
1010
### Install composer packages
1111
```bash
12-
$ composer require luzrain/phprunner-bundle
12+
$ composer require luzrain/phpstreamserver-bundle
1313
```
1414

1515
### Enable the bundle
@@ -19,21 +19,21 @@ $ composer require luzrain/phprunner-bundle
1919

2020
return [
2121
// ...
22-
Luzrain\PhpRunnerBundle\PhpRunnerBundle::class => ['all' => true],
22+
Luzrain\PHPStreamServerBundle\PHPStreamServerBundle::class => ['all' => true],
2323
];
2424
```
2525

2626
### Configure the bundle
2727
A minimal configuration might look like this.
2828
For all available options with documentation, see the command output.
2929
```bash
30-
$ bin/console config:dump-reference phprunner
30+
$ bin/console config:dump-reference phpstreamserver
3131
```
3232

3333
```yaml
34-
# config/packages/phprunner.yaml
34+
# config/packages/phpstreamserver.yaml
3535

36-
phprunner:
36+
phpstreamserver:
3737
servers:
3838
- name: 'Webserver'
3939
listen: http://0.0.0.0:80
@@ -42,7 +42,7 @@ phprunner:
4242
4343
### Start application
4444
```bash
45-
$ APP_RUNTIME=Luzrain\\PhpRunnerBundle\\Runtime php public/index.php start
45+
$ APP_RUNTIME=Luzrain\\PHPStreamServerBundle\\Runtime php public/index.php start
4646
```
4747

4848
\* For better performance, install the _php-uv_ extension.
@@ -71,13 +71,13 @@ The bundle provides several restart strategies that can be configured depending
7171

7272
See all available options for each strategy in the command output.
7373
```bash
74-
$ bin/console config:dump-reference phprunner reload_strategy
74+
$ bin/console config:dump-reference phpstreamserver reload_strategy
7575
```
7676

7777
```yaml
78-
# config/packages/phprunner.yaml
78+
# config/packages/phpstreamserver.yaml
7979

80-
phprunner:
80+
phpstreamserver:
8181
reload_strategy:
8282
on_exception:
8383
active: true
@@ -99,9 +99,9 @@ Schedule string can be formatted in several ways:
9999
** Note that you need to install the [dragonmantank/cron-expression](https://github.com/dragonmantank/cron-expression) package if you want to use cron expressions as schedule strings
100100
101101
```yaml
102-
# config/packages/phprunner.yaml
102+
# config/packages/phpstreamserver.yaml
103103

104-
phprunner:
104+
phpstreamserver:
105105
tasks:
106106
# Runs external program every 15 seconds
107107
- name: 'Task 1'
@@ -120,9 +120,9 @@ It can also work with both external commands and internal Symfony commands.
120120
To run a Symfony command, simply type the command name without any prefixes.
121121
122122
```yaml
123-
# config/packages/phprunner.yaml
123+
# config/packages/phpstreamserver.yaml
124124

125-
phprunner:
125+
phpstreamserver:
126126
processes:
127127
# Runs external program
128128
- name: 'External process'

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "luzrain/phprunner-bundle",
3-
"description": "Phprunner runtime for symfony applications",
4-
"keywords": ["phprunner", "symfony", "runtime", "php-runtime"],
5-
"homepage": "https://github.com/luzrain/phprunner-bundle",
2+
"name": "luzrain/phpstreamserver-bundle",
3+
"description": "PHPStreamServer runtime for symfony applications",
4+
"keywords": ["phpstreamserver", "symfony", "runtime", "php-runtime"],
5+
"homepage": "https://github.com/luzrain/phpstreamserver-bundle",
66
"type": "symfony-bundle",
77
"license": "MIT",
88
"authors": [
@@ -15,7 +15,7 @@
1515
"php": ">=8.2",
1616
"ext-pcntl": "*",
1717
"ext-posix": "*",
18-
"luzrain/phprunner": "^0.1",
18+
"luzrain/phpstreamserver": "^0.2.0",
1919
"psr/http-factory": "^1.0",
2020
"symfony/config": "^7.0",
2121
"symfony/dependency-injection": "^7.0",
@@ -37,12 +37,12 @@
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"Luzrain\\PhpRunnerBundle\\": "src/"
40+
"Luzrain\\PHPStreamServerBundle\\": "src/"
4141
}
4242
},
4343
"autoload-dev": {
4444
"psr-4": {
45-
"Luzrain\\PhpRunnerBundle\\Test\\": "tests/"
45+
"Luzrain\\PHPStreamServerBundle\\Test\\": "tests/"
4646
}
4747
},
4848
"scripts": {

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</include>
1818
</source>
1919
<php>
20-
<env name="KERNEL_CLASS" value="Luzrain\PhpRunnerBundle\Test\App\Kernel" />
21-
<env name="APP_RUNTIME" value="Luzrain\PhpRunnerBundle\Runtime" />
20+
<env name="KERNEL_CLASS" value="Luzrain\PHPStreamServerBundle\Test\App\Kernel" />
21+
<env name="APP_RUNTIME" value="Luzrain\PHPStreamServerBundle\Runtime" />
2222
<env name="APP_ENV" value="test" />
2323
<env name="SHELL_VERBOSITY" value="1" />
2424
</php>

src/ConfigLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle;
5+
namespace Luzrain\PHPStreamServerBundle;
66

77
use Symfony\Component\Config\ConfigCache;
88
use Symfony\Component\Config\Resource\DirectoryResource;
@@ -15,7 +15,7 @@ final class ConfigLoader implements CacheWarmerInterface
1515

1616
public function __construct(private string $projectDir, string $cacheDir, bool $isDebug)
1717
{
18-
$this->cache = new ConfigCache(\sprintf('%s/phprunner_config.cache.php', $cacheDir), $isDebug);
18+
$this->cache = new ConfigCache(\sprintf('%s/phpss_config.cache.php', $cacheDir), $isDebug);
1919
}
2020

2121
public function isOptional(): bool
@@ -26,7 +26,7 @@ public function isOptional(): bool
2626
public function warmUp(string $cacheDir, string $buildDir = null): array
2727
{
2828
$packagesDir = \sprintf('%s/config/packages', $this->projectDir);
29-
$metadata = \is_dir($packagesDir) ? [new DirectoryResource($packagesDir, '/phprunner/')] : [];
29+
$metadata = \is_dir($packagesDir) ? [new DirectoryResource($packagesDir, '/phpstreamserver/')] : [];
3030
$this->cache->write(\sprintf('<?php return %s;', \var_export($this->config, true)), $metadata);
3131

3232
return [];

src/Event/HttpServerStartEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\Event;
5+
namespace Luzrain\PHPStreamServerBundle\Event;
66

7-
use Luzrain\PhpRunner\WorkerProcess;
7+
use Luzrain\PHPStreamServer\WorkerProcess;
88
use Symfony\Contracts\EventDispatcher\Event;
99

1010
final class HttpServerStartEvent extends Event

src/FileMonitorWatcher/FileMonitorWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\FileMonitorWatcher;
5+
namespace Luzrain\PHPStreamServerBundle\FileMonitorWatcher;
66

77
use Psr\Log\LoggerInterface;
88
use Revolt\EventLoop\Driver;

src/FileMonitorWatcher/InotifyMonitorWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\FileMonitorWatcher;
5+
namespace Luzrain\PHPStreamServerBundle\FileMonitorWatcher;
66

77
use Revolt\EventLoop\Driver;
88

src/FileMonitorWatcher/PollingMonitorWatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\FileMonitorWatcher;
5+
namespace Luzrain\PHPStreamServerBundle\FileMonitorWatcher;
66

77
use Revolt\EventLoop\Driver;
88

src/Http/HttpRequestHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\Http;
5+
namespace Luzrain\PHPStreamServerBundle\Http;
66

7-
use Luzrain\PhpRunner\WorkerProcess;
7+
use Luzrain\PHPStreamServer\WorkerProcess;
88
use Psr\Http\Message\ResponseFactoryInterface;
99
use Psr\Http\Message\ResponseInterface;
1010
use Psr\Http\Message\ServerRequestInterface;

src/Http/MimeTypeMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Luzrain\PhpRunnerBundle\Http;
5+
namespace Luzrain\PHPStreamServerBundle\Http;
66

77
final class MimeTypeMapper
88
{

0 commit comments

Comments
 (0)