File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3- namespace CaptainHook \App \Integration \Plugin ;
3+ /**
4+ * This file is part of CaptainHook
5+ *
6+ * (c) Sebastian Feldmann <sf@sebastian-feldmann.info>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace CaptainHook \App \Plugin \Hook ;
413
514use CaptainHook \App \Config ;
615use CaptainHook \App \Plugin \Hook as HookPlugin ;
7- use CaptainHook \App \Plugin \Hook \Base ;
816use CaptainHook \App \Runner \Hook as RunnerHook ;
917
18+ /**
19+ * Simple demo plugin
20+ *
21+ * @package CaptainHook
22+ * @author Sebastian Feldmann <sf@sebastian-feldmann.info>
23+ * @link https://github.com/captainhook-git/captainhook
24+ * @since Class available since Release 5.28.3
25+ */
1026class SimplePlugin extends Base implements HookPlugin
1127{
1228 public function beforeHook (RunnerHook $ hook ): void
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public function testHookPluginRunsBeforeAndAfterHookAndActions(): void
1010
1111 $ this ->setConfig ($ repoPath , 'plugins ' , [
1212 [
13- 'plugin ' => '\\CaptainHook \\App \\Integration \\ Plugin \\SimplePlugin ' ,
13+ 'plugin ' => '\\CaptainHook \\App \\Plugin \\ Hook \\SimplePlugin ' ,
1414 'options ' => [
1515 'stuff ' => 'cool things ' ,
1616 ],
You can’t perform that action at this time.
0 commit comments