Browse Source

Add Plugin hook disable.

mscherer 5 years ago
parent
commit
70fb372ada
2 changed files with 7 additions and 1 deletions
  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',