《Slides Dev Web》02. Introduction aux frameworks PHP
// 06-fastroute/index.php // ... use function FastRoute\simpleDispatcher; use FastRouter\Dispatcher; $dispatcher = simpleDispatcher(function($r) { $r->addRoute('GET', '/', 'accueil'); $r->addRoute( spéciaux (e.g. %20) $routeInfo = $dispatcher->dispatch( $httpMethod, $uri ); Dispatcher::NOT_FOUND: case Dispatcher::METHOD_NOT_ALLOWED: 22 /* /* ... */break; case Dispatcher::FOUND: try { echo call_user_func_array( $routeInfo[1], $routeInfo[2] ); } catch (Exception $e){ echo server_error($e); } break; } Framework PHP Une collection de0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.0 Documentation
automatically inject any dependencies you need: use Illuminate\Contracts\Events\Dispatcher; public function boot(Dispatcher $events) { $events->listen('SomeEvent', 'SomeEventHandler'); } All service Illuminate\Contracts\Encryption\Encrypter Crypt Simplicity Contract Reference Illuminate\Contracts\Events\Dispatcher Event Illuminate\Contracts\Filesystem\Cloud Illuminate\Contracts\Filesystem\Factory File Illuminate\Database\DatabaseManager db DB (Instance) Illuminate\Database\Connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files Form Illuminate\Html\FormBuilder form0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.1 中文文档th\Guard Auth Illuminate\Contracts\Auth\PasswordBroker Password Illuminate\Contracts\Bus\Dispatcher Bus Illuminate\Contracts\Broadcasting\Broadcaster Illuminate\Contracts\Cache\Repository Cookie::queue() Illuminate\Contracts\Encryption\Encrypter Crypt Illuminate\Contracts\Events\Dispatcher Event Illuminate\Contracts\Filesystem\Cloud Illuminate\Contracts\Filesystem\Factory File Blade Illuminate\View\Compilers\BladeCompiler blade.compiler Bus Illuminate\Contracts\Bus\Dispatcher Cache Illuminate\Cache\Repository cache Config Illuminate\Config\Repository config0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档Blade Illuminate\View\Compilers\BladeCompiler blade.compiler Bus Illuminate\Contracts\Bus\Dispatcher Cache Illuminate\Cache\Repository cache 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel tabaseManager db DB (Instance) Illuminate\Database\Connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files Hash Illuminate\Contracts\Hashing\Hasher Illuminate\Contracts\Events\Dispatcher 契约的具体实现类作为事件 分发器手动注册事件: /** * Register any other events for your application. * * @param \Illuminate\Contracts\Events\Dispatcher $events 本文档由 Laravel 学院(LaravelAcademy0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.6 中文文档Broadcast(实例) Illuminate\Contracts\Broadcasting\Broadcaster Bus Illuminate\Contracts\Bus\Dispatcher 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 38 Manager db DB(实例) Illuminate\Database\Connection db.connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files Gate Illuminate\Contracts\Auth\Access\Gate Auth\SupportsBasicAuth Illuminate\Contracts\Auth\UserProvider Illuminate\Contracts\Bus\Dispatcher Bus Illuminate\Contracts\Bus\QueueingDispatcher Bus::dispatchToQueue() Illuminate\Contra0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档Blade Illuminate\View\Compilers\BladeCompiler blade.compiler Bus Illuminate\Contracts\Bus\Dispatcher Cache Illuminate\Cache\Repository cache Config Illuminate\Config\Repository config tabaseManager db DB (Instance) Illuminate\Database\Connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files 本文档由 Laravel 学院(LaravelAcademy.org)提供 \Factory Auth Illuminate\Contracts\Auth\PasswordBroker Password Illuminate\Contracts\Bus\Dispatcher Bus Illuminate\Contracts\Broadcasting\Broadcaster Illuminate\Contracts\Cache\Repository0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档Broadcast (实例) Illuminate\Contracts\Broadcasting\Broadcaster Bus Illuminate\Contracts\Bus\Dispatcher Cache Illuminate\Cache\CacheManager cache Cache(实 例) Illuminate\Cache\Repository cache.store 150 门面 类 服务容器绑定 DB(实例) Illuminate\Database\Connection db.connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files Gate Illuminate\Contracts\Auth\Access\Gate 中文学习资源:https://xueyuanjun.com 161 契约 对应门面 Illuminate\Contracts\Auth\UserProvider Illuminate\Contracts\Bus\Dispatcher Bus Illuminate\Contracts\Bus\QueueingDispatcher Bus::dispatchToQueue () Illuminate\Contracts0 码力 | 1442 页 | 14.66 MB | 1 年前3
Learning Laravelphp https://riptutorial.com/ 138 namespace App\Providers; use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;0 码力 | 216 页 | 1.58 MB | 1 年前3
共 8 条
- 1













