Learning LaravelImplementation 166 Binding an Instance 166 Binding a Singleton to the Service Container 166 Introduction 167 Using the Service Container as a Dependency Injection Container 167 Chapter 57: Socialite Create a new Eloquent model class make:policy Create a new policy class make:provider Create a new service provider class make:request Create a new form request class make:seeder Create a new seeder class will be available in all views under the name $shareddata. View::share is typically called in a service provider, or perhaps in the constructor of a controller, so the data will be shared in views returned0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Composers 5. Architecture Foundations i. Service Providers i. Introduction ii. Basic Provider Example iii. Registering Providers iv. Deferred Providers ii. Service Container i. Introduction ii. Basic Facade Class Reference v. Request Lifecycle i. Introduction ii. Lifecycle Overview iii. Focus On Service Providers vi. Application Structure i. Introduction ii. The Root Directory iii. The App Directory These service providers provide various bootstrapping functions to your application, such as error handling, logging, route loading, and more. Of course, you are free to create additional service providers0 码力 | 242 页 | 1.44 MB | 1 年前3
Falcon v0.3.0.1 Documentationcom/racker/falcon] Resources An Unladen Web Framework [http://blog.kgriffs.com/2013/07/02/python-fast-web-service- framework.html] The Definitive Introduction to Falcon [https://speakerdeck.com/cabrera/the-definitive- with a middleware app. For example: import my_restful_service import some_middleware app = some_middleware.DoSomethingFancy(my_restful_service.api) See also the WSGI middleware example [http://legacy strike a good balance between usability and speed. Second, Falcon is lean. It doesn’t try to be everything to everyone, focusing instead on a single use case: HTTP APIs. Falcon doesn’t include a template0 码力 | 126 页 | 345.09 KB | 1 年前3
CakePHP Cookbook Documentation 5.xapp skeleton with all vendor packages installed. Also it includes the composer.phar so you have everything you need for further use. Keeping Up To Date with the Latest CakePHP Changes By default this mod_rewrite out of the box–and usually does– we’ve noticed that a few users struggle with getting everything to play nicely on their systems. Here are a few things you might try to get it running correctly ServerRequest is available via DI. So you can get it from container or use it as a dependency for your service. Some of the duties ServerRequest performs include: Processing the GET, POST, and FILES arrays0 码力 | 1080 页 | 939.39 KB | 1 年前3
Falcon v1.0.0 Documentationcom/racker/falcon] Resources An Unladen Web Framework [http://blog.kgriffs.com/2013/07/02/python-fast-web-service- framework.html] The Definitive Introduction to Falcon [https://speakerdeck.com/cabrera/the-definitive- with a middleware app. For example: import my_restful_service import some_middleware app = some_middleware.DoSomethingFancy(my_restful_service.api) See also the WSGI middleware example [http://legacy strike a good balance between usability and speed. Second, Falcon is lean. It doesn’t try to be everything to everyone, focusing instead on a single use case: HTTP APIs. Falcon doesn’t include a template0 码力 | 312 页 | 368.58 KB | 1 年前3
The PHP Handbook
is a package that provides all of that, and more, and gives you a nice interface to start/stop everything at once. Of course, you can set up each piece on its own if you like, and many tutorials explain 11 This is the code that generates the “Welcome to MAMP” page you saw in the browser. Delete everything and replace that with: Save, refresh the page on http://localhost:8888 error log by using the error_log() function: error_log('test'); It’s common to use a logger service for errors, like Monolog. 18. Exceptions Sometimes errors are unavoidable. Something completely0 码力 | 97 页 | 8.78 MB | 1 年前3
Falcon v0.2.0 Documentationcom/racker/falcon] Resources An Unladen Web Framework [http://blog.kgriffs.com/2013/07/02/python-fast-web-service- framework.html] The Definitive Introduction to Falcon [https://speakerdeck.com/cabrera/the-definitive- with a middleware app. For example: import my_restful_service import some_middleware app = some_middleware.DoSomethingFancy(my_restful_service.api) See also the WSGI middleware example [http://legacy strike a good balance between usability and speed. Second, Falcon is lean. It doesn’t try to be everything to everyone, focusing instead on a single use case: HTTP APIs. Falcon doesn’t include a template0 码力 | 188 页 | 358.44 KB | 1 年前3
Falcon v1.2.0 Documentationcom/racker/falcon] Resources An Unladen Web Framework [http://blog.kgriffs.com/2013/07/02/python-fast-web-service- framework.html] The Definitive Introduction to Falcon [https://speakerdeck.com/cabrera/the-definitive- with a middleware app. For example: import my_restful_service import some_middleware app = some_middleware.DoSomethingFancy(my_restful_service.api) See also the WSGI middleware example [http://legacy strike a good balance between usability and speed. Second, Falcon is lean. It doesn’t try to be everything to everyone, focusing instead on a single use case: HTTP APIs. Falcon doesn’t include a template0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 Documentationwith a middleware app. For example: import my_restful_service import some_middleware app = some_middleware.DoSomethingFancy(my_restful_service.api) See also the WSGI middleware example given in PEP-3333 strike a good balance between usability and speed. Second, Falcon is lean. It doesn’t try to be everything to everyone, focusing instead on a single use case: HTTP APIs. Falcon doesn’t include a template helpers, or an ORM (although those are easy enough to add yourself). When you sit down to write a web service with Falcon, you choose your own adventure in terms of async I/O, serialization, data access, etc0 码力 | 134 页 | 498.46 KB | 1 年前3
CakePHP Cookbook 4.x
While the DI container is marked as experimental, this upgrade could require you to upgrade your service provider definitions. Database Database mapping types can now implement Cake\Database\Type\Col Use Response::isNotModified() instead. BaseApplication::handle() now adds the $request into the service container all the time. HttpsEnforcerMiddleware now has an hsts option that allows you to configure app skeleton with all vendor packages installed. Also it includes the composer.phar so you have everything you need for further use. Keeping Up To Date with the Latest CakePHP Changes By default this0 码力 | 1249 页 | 1.04 MB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













