Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 04cbeb2

Browse files
committed
Todo Abut Avoiding Data Pollution
1 parent 683e3a9 commit 04cbeb2

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

readme.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ If you enable `eval(tinker())` and see an error about mkdir, please start Larave
1919

2020
Now, your project is flying and listening to port 9501. Enjoy yourself.
2121

22-
Every time LaravelFly starts, it makes a config cache file `laravelfly_ps_map.php` or `laravelfly_ps_simple.php` located `bootstrap/cache`, you can run
23-
`php artisan config:clear && php vendor/scil/laravel-fly/bin/fly start`
24-
if config file `config/laravelfly.php` changed frequently.
22+
Every time LaravelFly starts, it makes a config cache file laravelfly_ps_map.php or laravelfly_ps_simple.php located bootstrap/cache, so if config file `config/laravelfly.php` changed frequently you can run
23+
```
24+
alias ff='php artisan config:clear && php vendor/scil/laravel-fly/bin/fly start'
25+
26+
ff
27+
```
28+
2529

2630
## Doc
2731

@@ -75,6 +79,16 @@ The nginx conf [swoole_fallback_to_phpfpm.conf](config/swoole_fallback_to_phpfpm
7579

7680
Another nginx conf [use_swoole_or_fpm_depending_on_clients](config/use_swoole_or_fpm_depending_on_clients.conf) allows us use query string `?useserver=<swoole|fpm|...` to select the server between swoole or fpm. That's wonderful for test, such as to use eval(tinker()) as a online debugger for your fpm-supported projects.
7781

82+
## Todo Abut Avoiding Data Pollution
83+
84+
- [x] Application.
85+
- [x] Base Services: Dispatcher/app('event'), Router/app('router') and UrlGenerator/app('url').
86+
- [x] Other Service Providers. configurable in config/laravel.php
87+
- [x] Facade.
88+
- [x] Laravel Config. configurable by the 'config' key of LARAVELFLY_SERVICES in fly.conf.php
89+
- [ ] Php Config. It's not supported in the near future. Tow reasons:
90+
1. It's related with php internal function ini_set.
91+
2. It's useless in 99% of cases where all of the php internal configs are same across multile requests.
7892

7993
## Todo
8094

@@ -84,8 +98,6 @@ Another nginx conf [use_swoole_or_fpm_depending_on_clients](config/use_swoole_or
8498
- [x] watch code changes and hot reload
8599
- [x] watch maintenance mode using swoole_event_add
86100
- [x] mysql coroutine
87-
- [x] handle laravel config in Mode Simple and Mode Map
88-
- [ ] handle php config like Zend?
89101
- [ ] add tests about auth SessionGuard: Illuminate/Auth/SessionGuard.php with uses Request::createFromGlobals
90102
- [ ] add tests about uploaded file, related symfony/http-foundation files: File/UploadedFile.php and FileBag.php(fixPhpFilesArray)
91103
- [ ] mysql connection pool

0 commit comments

Comments
 (0)