File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1515 */
1616namespace DebugKit ;
1717
18+ use Cake \Console \CommandCollection ;
1819use Cake \Core \BasePlugin ;
1920use Cake \Core \Configure ;
2021use Cake \Core \PluginApplicationInterface ;
2122use Cake \Event \EventManager ;
2223use Cake \Http \MiddlewareQueue ;
24+ use DebugKit \Command \BenchmarkCommand ;
2325use DebugKit \Middleware \DebugKitMiddleware ;
2426use DebugKit \Panel \DeprecationsPanel ;
2527
@@ -70,6 +72,17 @@ public function middleware(MiddlewareQueue $middleware): MiddlewareQueue
7072 return $ middleware ;
7173 }
7274
75+ /**
76+ * Add console commands for the plugin.
77+ *
78+ * @param \Cake\Console\CommandCollection $commands The command collection to update
79+ * @return \Cake\Console\CommandCollection
80+ */
81+ public function console (CommandCollection $ commands ): CommandCollection
82+ {
83+ return $ commands ->add ('benchmark ' , BenchmarkCommand::class);
84+ }
85+
7386 /**
7487 * set deprecation handler
7588 *
You can’t perform that action at this time.
0 commit comments