5.2中还有Implicit Controllers吗?为什么官方文档中没有这个介绍了?

在5.1中明确的介绍了Implicit Controllers,也就是Route::controller方法,可在5.2的控制器介绍中,根本没有提到这个,为啥?
已邀请:

双子星 - Laravel群:9783891

赞同来自:

算了,自己找到答案了:
Deprecations

The following features are deprecated in 5.2 and will be removed in the 5.3 release in June 2016:
  • Illuminate\Contracts\Bus\SelfHandling contract. Can be removed from jobs.
  • The lists method on the Collection, query builder and Eloquent query builder objects has been renamed to pluck. The method signature remains the same.
  • Implicit controller routes using Route::controller have been deprecated. Please use explicit route registration in your routes file. This will likely be extracted into a package.
  • The get, post, and other route helper function have been removed. You may use the Route facade instead.
  • The database session driver from 5.1 has been renamed to legacy-database and will be removed. Consult notes on the "database session driver" above for more information.
  • The Str::randomBytes function has been deprecated in favor of the random_bytes native PHP function.
  • The Str::equals function has been deprecated in favor of the hash_equals native PHP function.
  • Illuminate\View\Expression has been deprecated in favor of Illuminate\Support\HtmlString.

隐式控制器在5.2中不赞成使用,在5.3中将被取消(变成扩展包)。我感觉这个用着很方便啊,为毛要取消啊,真是,一个个的定义多麻烦,一个隐式的可以省很多事呢。

meforeg

赞同来自:

的确很方便

要回复问题请先登录注册