Zend_Controller-Migration.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. <sect1 id="zend.controller.migration">
  2. <title>从以前的版本移植</title>
  3. <para>
  4. 随着时间的推移,MVC组件的API修改了许多。如果你从Zend Framework早期的版本开始使用,遵照下面的方针来移植你的脚本来使用新的架构。
  5. </para>
  6. <sect2 id="zend.controller.migration.fromoneohtoonesix">
  7. <title> 从 1.5.x 移植到 1.6.0 或更新的版本 </title>
  8. <sect3 id="zend.controller.migration.fromoneohtoonesix.dispatcher">
  9. <title> 分发器接口修改 </title>
  10. <para>
  11. 引起我们注意的是<code>Zend_Controller_Front</code> 和
  12. <code>Zend_Controller_Router_Route_Module</code> 使用的分发器方法不在分发器接口里。
  13. 我们现在添加了下列三个方法来确保定制的分发器可以继续工作:
  14. </para>
  15. <itemizedlist>
  16. <listitem><para>
  17. <code>getDefaultModule()</code>: 应当返回缺省模块名称。
  18. </para></listitem>
  19. <listitem><para>
  20. <code>getDefaultControllerName()</code>: 应当返回缺省控制器的名称。
  21. </para></listitem>
  22. <listitem><para>
  23. <code>getDefaultAction()</code>: 应当返回缺省动作的名称。
  24. </para></listitem>
  25. </itemizedlist>
  26. </sect3>
  27. </sect2>
  28. <sect2 id="zend.controller.migration.fromoneohtoonefive">
  29. <title> 从 1.0.x 到 1.5.0 或更新的版本的移植 </title>
  30. <para>
  31. 尽管大部分基本功能和所有有文档的功能保持不变,但有一个特别的 <emphasis> 未披露的(undocumented)</emphasis> “功能”发生了改变。
  32. </para>
  33. <para>
  34. 当写 URLs,文档记载的写驼峰式的动作名称的方法是使用一个字分隔符,这些分隔符缺省是 '.' 或 '-',也可以在派遣器里配置。派遣器在内部把动作命称都变成小写字母,并使用这些字分隔符通过驼峰规则来重新组合动作方法。 然而,因为 PHP 函数不是大小写敏感,你仍然 <emphasis> 可以 </emphasis> 使用驼峰规则来写 URLs,派遣器将解析它们到同一位置。 例如:'camel-cased' 将成为 'camelCasedAction' ,而 'camelCased' 将成为 'camelcasedAction' ,然而,根据 PHP 的大小写敏感性,它们都将执行同一方法。
  35. </para>
  36. <para>
  37. 问题是当用视图解析器(ViewRenderer)解析(resolving)视图脚本的时候:规范的,文档记载的方法是所有的字分隔符被转换成短横线,所有的字母变小写,这在动作和视图脚本之间建立了一个语义联系,并且标准化确保能找到脚本。然而,如果调用动作 'camelCased' 并确实被解析,字分隔符不再存在,并且视图解析器(ViewRenderer)尝试解析到不同的地方 - 'camelcased.phtml' 而不是 'camel-cased.phtml' 。
  38. </para>
  39. <para>
  40. 有些开发者无意中依赖这个“功能”。在 1.5.0 中有若干修改,使得视图解析器(ViewRenderer)不再解析这些路径,现在强制语义联系。 首先,派遣器现在强制动作名大小写敏感,那意味着在 url 指向动作而使用的驼峰命名和使用字分隔符(如,'camel-casing')不再解析到同一方法。这导致视图解析器(ViewRenderer)当解析视图教本时只考虑字分隔符动作。
  41. </para>
  42. <para>
  43. 如果你是依赖这个“功能”,有下列解决办法:
  44. </para>
  45. <itemizedlist>
  46. <listitem><para>
  47. 最好的办法:修改视图脚本的名称。好处是:向前兼容。坏处是:如果你的视图脚本很多,那是一个很大的工作量。
  48. </para></listitem>
  49. <listitem>
  50. <para>
  51. 第二好的办法:视图解析器(ViewRenderer)现在给 <code>Zend_Filter_Inflector</code> 代表视图脚本解析,可以修改变形器(inflector)的规则,使之不再用短横线作为动作名称中的分隔符:
  52. </para>
  53. <programlisting role="php"><![CDATA[
  54. $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
  55. $inflector = $viewRenderer->getInflector();
  56. $inflector->setFilterRule(':action', array(
  57. new Zend_Filter_PregReplace(
  58. '#[^a-z0-9' . preg_quote(DIRECTORY_SEPARATOR, '#') . ']+#i',
  59. ''
  60. ),
  61. 'StringToLower'
  62. ));
  63. ]]>
  64. </programlisting>
  65. <para>
  66. 上面的代码修改变形器使之不再使用短横线作为字分隔符,如果你<emphasis>确实</emphasis>也想用驼峰命名实际的视图脚本,可能要删除 'StringToLower'过滤器。
  67. </para>
  68. <para>
  69. 如果修改视图脚本名很无聊和浪费时间,这是你最好的选择除非你有时间来做。
  70. </para>
  71. </listitem>
  72. <listitem>
  73. <para>
  74. 最不希望的办法:你可以强制派遣器用新的前端控制器标志-'useCaseSensitiveActions'来派遣驼峰命名的动作:
  75. </para>
  76. <programlisting role="php"><![CDATA[
  77. $front->setParam('useCaseSensitiveActions', true);
  78. ]]>
  79. </programlisting>
  80. <para>
  81. 这将允许你再 url 中使用驼峰命名并且仍把它解析到和用字分隔符命名的同一动作。然而,这将意味着原有的问题接踵而来,你将可能使用上述第二种办法以确保可靠工作。
  82. </para>
  83. <para>
  84. 注:那个标志(flag)的用法将提示这个用法将退出舞台。
  85. </para>
  86. </listitem>
  87. </itemizedlist>
  88. </sect2>
  89. <sect2 id="zend.controller.migration.fromzeroninethree">
  90. <title> 从 0.9.3 到 1.0.0RC1 或更新的版本的移植 </title>
  91. <para>
  92. 在1.0.0RC1中的主要变化是<link linkend="zend.controller.plugins.standard.errorhandler">ErrorHandler</link>插件的缺省激活 和 <link linkend="zend.controller.actionhelpers.viewrenderer">ViewRenderer</link>的动作助手的简介。请阅读整个的文档来看它们是如何工作的和对你的应用程序有什么影响。
  93. </para>
  94. <para>
  95. 在<code>postDispatch()</code>期间,<code>ErrorHandler</code>插件检查异常,并转发到一个特定的错误管理控制器。你需要包含这样一个控制器在你的程序中,可以通过设置前端控制器参数<code>noErrorHandler</code>来禁止它:
  96. </para>
  97. <programlisting role="php"><![CDATA[
  98. $front->setParam('noErrorHandler', true);
  99. ]]>
  100. </programlisting>
  101. <para>
  102. 基于当前版本,<code>ViewRenderer</code>动作助手使视图注入到动作控制器和视图脚本的自动调用自动化。你可能遇到的主要问题是如果你有没有调用视图脚本的动作并且不转发也不重定向,因为<code>ViewRenderer</code>将基于动作名来尝试调用一个视图脚本。
  103. </para>
  104. <para>
  105. 有若干策略你可以用来更新你的代码。短期,你可以在派遣之前全局地在前端控制器引导文件禁止<code>ViewRenderer</code>:
  106. </para>
  107. <programlisting role="php"><![CDATA[
  108. // Assuming $front is an instance of Zend_Controller_Front
  109. $front->setParam('noViewRenderer', true);
  110. ]]>
  111. </programlisting>
  112. <para>
  113. 然而,这不是一个好的长期策略,因为它意味着最大可能你要写更多的代码。
  114. </para>
  115. <para>
  116. 当你准备好开始使用<code>ViewRenderer</code>功能,有若干事情需要在控制器代码里寻找。首先,看看动作方法(以'Action'结尾的方法)都在干什么。如果下面任何事情都没有发生,你需要修改:
  117. </para>
  118. <itemizedlist>
  119. <listitem><para>Calls to <code>$this-&gt;render()</code></para></listitem>
  120. <listitem><para>Calls to <code>$this-&gt;_forward()</code></para></listitem>
  121. <listitem><para>Calls to <code>$this-&gt;_redirect()</code></para></listitem>
  122. <listitem><para>Calls to the <code>Redirector</code> action helper</para></listitem>
  123. </itemizedlist>
  124. <para>
  125. 最容易的修改就是为那个方法禁止auto-rendering:
  126. </para>
  127. <programlisting role="php"><![CDATA[
  128. $this->_helper->viewRenderer->setNoRender();
  129. ]]>
  130. </programlisting>
  131. <para>
  132. 如果你发现没有动作方法调用,转发或重定向,你可能需要把上面一行放到<code>preDispatch()</code> 或 <code>init()</code>方法:
  133. </para>
  134. <programlisting role="php"><![CDATA[
  135. public function preDispatch()
  136. {
  137. // disable view script autorendering
  138. $this->_helper->viewRenderer->setNoRender()
  139. // .. do other things...
  140. }
  141. ]]>
  142. </programlisting>
  143. <para>
  144. 如果你调用<code>render()</code>并使用<link linkend="zend.controller.modular">传统模块目录结构</link>,你将想修改你的代码去利用自动调用:
  145. </para>
  146. <itemizedlist>
  147. <listitem>
  148. <para>
  149. 如果在一个单个的动作里调用多个视图脚本,你不需要修改任何事情。
  150. </para>
  151. </listitem>
  152. <listitem>
  153. <para>
  154. 如果不带参数调用<code>render()</code>,你可以删除它。
  155. </para>
  156. </listitem>
  157. <listitem>
  158. <para>
  159. 如果带参数调用<code>render()</code>,并以后不做任何处理或调用多个视图脚本,你可以修改这些调用去读<code>$this-&gt;_helper-&gt;viewRenderer()</code>。
  160. </para>
  161. </listitem>
  162. </itemizedlist>
  163. <para>
  164. 如果你不使用传统模块目录结构,有很多方法来设置视图基本路径和脚本路径参数,这样你可以使用<code>ViewRenderer</code>。请阅读<link linkend="zend.controller.actionhelpers.viewrenderer">ViewRenderer 文档</link>中关于这些方法的信息。
  165. </para>
  166. <para>
  167. 如果你使用注册表中的视图对象,或定制你的视图对象,或使用不同的视图实现,你需要注入<code>ViewRenderer</code>。这很容易地在任何时候完成。
  168. </para>
  169. <itemizedlist>
  170. <listitem>
  171. <para>
  172. 在派遣前端控制器实例之前:
  173. </para>
  174. <programlisting role="php"><![CDATA[
  175. // Assuming $view has already been defined
  176. $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
  177. Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
  178. ]]>
  179. </programlisting>
  180. </listitem>
  181. <listitem>
  182. <para>
  183. 在引导过程中的任何时候:
  184. </para>
  185. <programlisting role="php"><![CDATA[
  186. $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
  187. $viewRenderer->setView($view);
  188. ]]>
  189. </programlisting>
  190. </listitem>
  191. </itemizedlist>
  192. <para>
  193. 有许多办法来修改<code>ViewRenderer</code>,包括设置不同的视图脚本来调用,给所有视图脚本路径(包括后缀)可替换元素指定替代,选择响应指定的段来利用,等等。如果你不使用传统模块目录结构,你甚至可以用<code>ViewRenderer</code>联合不同的路径规范。
  194. </para>
  195. <para>
  196. 我们鼓励你用<code>ErrorHandler</code> 和 <code>ViewRenderer</code>改编你的代码,因为它们现在是核心功能。
  197. </para>
  198. </sect2>
  199. <sect2 id="zend.controller.migration.fromzeroninetwo">
  200. <title>从 0.9.2 移植到 0.9.3 或更新的版本</title>
  201. <para>
  202. 0.9.3 介绍了<link linkend="zend.controller.actionhelpers">action helpers</link>。作为这个改变的一部分,下面的方法已经删除因为它们现在被封装到<link linkend="zend.controller.actionhelpers.redirector">重定向动作助手</link>:
  203. </para>
  204. <itemizedlist>
  205. <listitem>
  206. <para>
  207. <code>setRedirectCode()</code>;使用 <code>Zend_Controller_Action_Helper_Redirector::setCode()</code>。
  208. </para>
  209. </listitem>
  210. <listitem>
  211. <para>
  212. <code>setRedirectPrependBase()</code>;使用 <code>Zend_Controller_Action_Helper_Redirector::setPrependBase()</code>。
  213. </para>
  214. </listitem>
  215. <listitem>
  216. <para>
  217. <code>setRedirectExit()</code>;使用 <code>Zend_Controller_Action_Helper_Redirector::setExit()</code>。
  218. </para>
  219. </listitem>
  220. </itemizedlist>
  221. <para>
  222. 阅读<link linkend="zend.controller.actionhelpers">动作助手文档</link>有更多的信息关于如何获取和操作助手对象,还有<link linkend="zend.controller.actionhelpers.redirector">重定向助手文档</link>有更多信息关于设置重定向选项(还有重定向的替代方法)。
  223. </para>
  224. </sect2>
  225. <sect2 id="zend.controller.migration.fromzerosix">
  226. <title>从 0.6.0 移植到 0.8.0 或更新的版本 </title>
  227. <para>
  228. 每次修改,MVC组件的最基本用法保持不变:
  229. </para>
  230. <programlisting role="php"><![CDATA[
  231. Zend_Controller_Front::run('/path/to/controllers');
  232. ]]>
  233. </programlisting>
  234. <para>
  235. 然而,目录结构经历了检查,数个组件被删除,同时若干个其它的被改名或添加。变化包括:
  236. </para>
  237. <itemizedlist>
  238. <listitem>
  239. <para>
  240. <code>Zend_Controller_Router</code> 被删除有利于rewrite路由器。
  241. </para>
  242. </listitem>
  243. <listitem>
  244. <para>
  245. <code>Zend_Controller_RewriteRouter</code> 改名为 <code>Zend_Controller_Router_Rewrite</code>,并提升为标准路由器和框架一起发行;如果没有提供其它路由器 <code>Zend_Controller_Front</code> 将使用它为缺省的路由器。
  246. </para>
  247. </listitem>
  248. <listitem>
  249. <para>
  250. 使用rewrite路由器的新路由被引入,<code>Zend_Controller_Router_Route_Module</code>;它覆盖了MVC使用的缺省路由,并支持<link linkend="zend.controller.modular">控制器模块 </link>。
  251. </para>
  252. </listitem>
  253. <listitem>
  254. <para>
  255. <code>Zend_Controller_Router_StaticRoute</code> 改名为 <code>Zend_Controller_Router_Route_Static</code>。
  256. </para>
  257. </listitem>
  258. <listitem>
  259. <para>
  260. <code>Zend_Controller_Dispatcher</code> 改名为 <code>Zend_Controller_Dispatcher_Standard</code>。
  261. </para>
  262. </listitem>
  263. <listitem>
  264. <para>
  265. <code>Zend_Controller_Action::_forward()</code>的参数被修改。签名现在是:
  266. </para>
  267. <programlisting role="php"><![CDATA[
  268. final protected function _forward($action, $controller = null, $module = null, array $params = null);
  269. ]]>
  270. </programlisting>
  271. <para>
  272. <code>$action</code>总是被要求的;如果没有指定控制器,在当前控制器中的动作被使用。<code>$module</code> 总是被忽略除非 <code>$controller</code> 被指定。最后,任何提供的<code>$params</code> 将被追加到请求对象。如果你不请求控制器或模块,当仍需要传递参数,简单地指定null到这些值。
  273. </para>
  274. </listitem>
  275. </itemizedlist>
  276. </sect2>
  277. <sect2 id="zend.controller.migration.fromzerotwo">
  278. <title>从 0.2.0 或以前的版本移植到 0.6.0</title>
  279. <para>
  280. (这段就让它保持原样吧 Jason Qi)
  281. </para>
  282. <para>
  283. The most basic usage of the MVC components has not changed; you can
  284. still do each of the following:
  285. </para>
  286. <programlisting role="php"><![CDATA[
  287. Zend_Controller_Front::run('/path/to/controllers');
  288. ]]>
  289. </programlisting>
  290. <programlisting role="php"><![CDATA[
  291. /* -- create a router -- */
  292. $router = new Zend_Controller_RewriteRouter();
  293. $router->addRoute('user', 'user/:username', array('controller' => 'user',
  294. 'action' => 'info'));
  295. /* -- set it in a controller -- */
  296. $ctrl = Zend_Controller_Front::getInstance();
  297. $ctrl->setRouter($router);
  298. /* -- set controller directory and dispatch -- */
  299. $ctrl->setControllerDirectory('/path/to/controllers');
  300. $ctrl->dispatch();
  301. ]]>
  302. </programlisting>
  303. <para>
  304. We encourage use of the Response object to aggregate content and
  305. headers. This will allow for more flexible output format switching
  306. (for instance, JSON or XML instead of XHTML) in your applications.
  307. By default, <code>dispatch()</code> will render the response, sending both
  308. headers and rendering any content. You may also have the front
  309. controller return the response using <code>returnResponse()</code>,
  310. and then render the response using your own logic. A future version
  311. of the front controller may enforce use of the response object via
  312. output buffering.
  313. </para>
  314. <para>
  315. There are many additional features that extend the existing API,
  316. and these are noted in the documentation.
  317. </para>
  318. <para>
  319. The main changes you will need to be aware of will be found when
  320. subclassing the various components. Key amongst these are:
  321. </para>
  322. <itemizedlist>
  323. <listitem>
  324. <para>
  325. <code>Zend_Controller_Front::dispatch()</code> by default
  326. traps exceptions in the response object, and does not render
  327. them, in order to prevent sensitive system information from
  328. being rendered. You can override this in several ways:
  329. </para>
  330. <itemizedlist>
  331. <listitem>
  332. <para>
  333. Set <code>throwExceptions()</code> in the front
  334. controller:
  335. </para>
  336. <programlisting role="php"><![CDATA[
  337. $front->throwExceptions(true);
  338. ]]>
  339. </programlisting>
  340. </listitem>
  341. <listitem>
  342. <para>
  343. Set <code>renderExceptions()</code> in the response
  344. object:
  345. </para>
  346. <programlisting role="php"><![CDATA[
  347. $response->renderExceptions(true);
  348. $front->setResponse($response);
  349. $front->dispatch();
  350. // or:
  351. $front->returnResponse(true);
  352. $response = $front->dispatch();
  353. $response->renderExceptions(true);
  354. echo $response;
  355. ]]>
  356. </programlisting>
  357. </listitem>
  358. </itemizedlist>
  359. </listitem>
  360. <listitem><para>
  361. <code>Zend_Controller_Dispatcher_Interface::dispatch()</code>
  362. now accepts and returns a <xref linkend="zend.controller.request" />
  363. object instead of a dispatcher token.
  364. </para></listitem>
  365. <listitem><para>
  366. <code>Zend_Controller_Router_Interface::route()</code>
  367. now accepts and returns a <xref linkend="zend.controller.request" />
  368. object instead of a dispatcher token.
  369. </para></listitem>
  370. <listitem>
  371. <para><code>Zend_Controller_Action</code> changes include:</para>
  372. <itemizedlist>
  373. <listitem><para>
  374. The constructor now accepts exactly three arguments,
  375. <code>Zend_Controller_Request_Abstract $request</code>,
  376. <code>Zend_Controller_Response_Abstract $response</code>,
  377. and <code>array $params (optional)</code>.
  378. <code>Zend_Controller_Action::__construct()</code> uses
  379. these to set the request, response, and invokeArgs
  380. properties of the object, and if overriding the
  381. constructor, you should do so as well. Better yet, use
  382. the <code>init()</code> method to do any instance
  383. configuration, as this method is called as the final
  384. action of the constructor.
  385. </para></listitem>
  386. <listitem><para>
  387. <code>run()</code> is no longer defined as final, but is
  388. also no longer used by the front controller; it's sole
  389. purpose is for using the class as a page controller. It
  390. now takes two optional arguments, a
  391. <code>Zend_Controller_Request_Abstract $request</code>
  392. and a <code>Zend_Controller_Response_Abstract $response</code>.
  393. </para></listitem>
  394. <listitem><para>
  395. <code>indexAction()</code> no longer needs to be
  396. defined, but is encouraged as the default action. This
  397. allows using the RewriteRouter and action controllers to
  398. specify different default action methods.
  399. </para></listitem>
  400. <listitem><para>
  401. <code>__call()</code> should be overridden to handle any
  402. undefined actions automatically.
  403. </para></listitem>
  404. <listitem><para>
  405. <code>_redirect()</code> now takes an optional second
  406. argument, the HTTP code to return with the redirect, and
  407. an optional third argument, <code>$prependBase</code>,
  408. that can indicate that the base URL registered with the
  409. request object should be prepended to the url specified.
  410. </para></listitem>
  411. <listitem>
  412. <para>
  413. The <code>_action</code> property is no longer set.
  414. This property was a <code>Zend_Controller_Dispatcher_Token</code>,
  415. which no longer exists in the current incarnation.
  416. The sole purpose of the token was to provide
  417. information about the requested controller, action,
  418. and URL parameters. This information is now
  419. available in the request object, and can be accessed
  420. as follows:
  421. </para>
  422. <programlisting role="php"><![CDATA[
  423. // Retrieve the requested controller name
  424. // Access used to be via: $this->_action->getControllerName().
  425. // The example below uses getRequest(), though you may also directly access the
  426. // $_request property; using getRequest() is recommended as a parent class may
  427. // override access to the request object.
  428. $controller = $this->getRequest()->getControllerName();
  429. // Retrieve the requested action name
  430. // Access used to be via: $this->_action->getActionName().
  431. $action = $this->getRequest()->getActionName();
  432. // Retrieve the request parameters
  433. // This hasn't changed; the _getParams() and _getParam() methods simply proxy to
  434. // the request object now.
  435. $params = $this->_getParams();
  436. $foo = $this->_getParam('foo', 'default'); // request 'foo' parameter, using
  437. // 'default' as default value if not found
  438. ]]>
  439. </programlisting>
  440. </listitem>
  441. <listitem>
  442. <para>
  443. <code>noRouteAction()</code> has been removed. The
  444. appropriate way to handle non-existent action
  445. methods should you wish to route them to a default
  446. action is using <code>__call()</code>:
  447. </para>
  448. <programlisting role="php"><![CDATA[
  449. public function __call($method, $args)
  450. {
  451. // If an unmatched 'Action' method was requested, pass on to the default
  452. // action method:
  453. if ('Action' == substr($method, -6)) {
  454. return $this->defaultAction();
  455. }
  456. throw new Zend_Controller_Exception('Invalid method called');
  457. }
  458. ]]>
  459. </programlisting>
  460. </listitem>
  461. </itemizedlist>
  462. </listitem>
  463. <listitem><para>
  464. <code>Zend_Controller_RewriteRouter::setRewriteBase()</code> has
  465. been removed. Use <code>Zend_Controller_Front::setBaseUrl()</code>
  466. instead (or Zend_Controller_Request_Http::setBaseUrl(), if using
  467. that request class).
  468. </para></listitem>
  469. <listitem><para>
  470. <code>Zend_Controller_Plugin_Interface</code> was replaced
  471. by <code>Zend_Controller_Plugin_Abstract</code>. All methods now
  472. accept and return a <xref linkend="zend.controller.request" />
  473. object instead of a dispatcher token.
  474. </para></listitem>
  475. </itemizedlist>
  476. </sect2>
  477. </sect1>
  478. <!--
  479. vim:se ts=4 sw=4 et:
  480. -->