Skip to content

Commit f10a81d

Browse files
Include SimplePlugin in src directory
It might be useful for debugging purposes and to demo Plugin functionality. Fixes issue #292
1 parent 2adbc8f commit f10a81d

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
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

514
use CaptainHook\App\Config;
615
use CaptainHook\App\Plugin\Hook as HookPlugin;
7-
use CaptainHook\App\Plugin\Hook\Base;
816
use 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+
*/
1026
class SimplePlugin extends Base implements HookPlugin
1127
{
1228
public function beforeHook(RunnerHook $hook): void

tests/integration/HookPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
],

0 commit comments

Comments
 (0)