首页 > 其他 > 详细

Support Facades

时间:2016-07-05 12:06:34      阅读:205      评论:0      收藏:0      [点我收藏+]

Support Facades

Introduction

Facades provide a "static" interface to classes that are available in the application‘s service container. Nova ships with many facades, and you have probably been using them without even knowing it! Nova "facades" serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

Facade Class Reference

Below you will find every facade and its underlying class. This is a useful tool for quickly digging into the API documentation for a given facade root. The service container binding key is also included where applicable.

FacadeClassService Container Binding
Auth Auth\Guard Auth
Cookie Cookie\CookieJar Cookie
Crypt Crypt\Encrypter Crypt
Database Database\Connection DB
Event Events\Dispatcher Event
Hash Support\Facades\Hash Hash
Input Support\Facades\Input Input
Language Core\Language Language
Mailer Mail\Mailer Mailer
Paginator Pagination\Factory Paginator
Password Auth\Reminders\PasswordBroker Password
Redirect Routing\Redirector Redirect
Request Http\Request Request
Response Http\Response Response
Session Session\Store Session
Validator Validation\Factory Validator

Support Facades

原文:http://www.cnblogs.com/chunguang/p/5643026.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!