This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Mode Map Base Items
scil edited this page Dec 1, 2018
·
7 revisions
- Mode Map
- Mode Backup Safety Checklist
item | Data Pollution | note | Memory Leak | note | config |
---|---|---|---|---|---|
Application | β | - | |||
Kernel | π§ | π§ | Kernel::pushMiddleware or prependMiddleware? No worry, because there's a check: if (array_search($middleware, $this->middleware) === false)
|
LARAVELFLY_SERVICES['kernel'], config('laravelfly.BaseServices')[\Illuminate\Contracts\Http\Kernel::class] | |
ServiceProvider | π | 'publishes', 'publishGroups' are used mainly in php artisan | β | props are associate arrays | |
events | β | Dict | β | Dict | |
router | π | π | |||
routes | π§ | cloneπ | β | props are associate arrays. | LARAVELFLY_SERVICES['routes'] |
π | π ; cloneπ [1],closure props 'sessionResolver','keyResolver', 'formatHostUsing','formatPathUsing' are not cloned but harmless. | β | |||
url | π | π ; closure props 'sessionResolver','keyResolver', 'formatHostUsing','formatPathUsing' are not cloned but harmless. | β | ||
redirect(Redirector) | π | π | |||
Facade | β | Dict | |||
config | β | Dict | β | Methods set/push/prepend. | |
PHP Config | π | should not changed in any requests when LARAVELFLY_COROUTINE | NA |
- [1]: Props routes and request of url would update (registerUrlGenerator) and also routeGenerator when setRequest.
-
π§: configurable
-
π: works well in most cases, except basic config different in different requests. for example, UrlGenerator::$formatHostUsing is a callback/closure and keep same in most projects.But if your project has different formatHostUsing, plus hack work is needed.
-
π§π: configurable, and works well in most cases after configration.
-
NA: not applicable
-
π : macros with same name should keep same.In Mode Map, Laravel Macros are not supported to avoid data pollution, because in most situations macros are always same.
-
cloneπ means LaravelFly has handled the Stale Reference problems in Laravel Official objects.
- Start
- Coding Guideline
- Deploy and OS Configuration
- New API
- Design
- Dev about Mode Map
- Dev about Mode Backup