浏览代码

Add Plugin hook disable.

mscherer 5 年之前
父节点
当前提交
70fb372ada
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 6 0
      src/Plugin.php
  2. 1 1
      tests/TestCase/View/Helper/FormatHelperTest.php

+ 6 - 0
src/Plugin.php

@@ -8,4 +8,10 @@ use Cake\Core\BasePlugin;
  * Plugin for Tools
  */
 class Plugin extends BasePlugin {
+
+	/**
+	 * @var bool
+	 */
+	protected $middlewareEnabled = false;
+
 }

+ 1 - 1
tests/TestCase/View/Helper/FormatHelperTest.php

@@ -15,7 +15,7 @@ use Tools\View\Helper\FormatHelper;
 class FormatHelperTest extends TestCase {
 
 	/**
-	 * @var array
+	 * @var string[]
 	 */
 	protected $fixtures = [
 		'core.Sessions',