forked from laminas/laminas-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginAwareInterface.php
More file actions
33 lines (28 loc) · 939 Bytes
/
PluginAwareInterface.php
File metadata and controls
33 lines (28 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @see https://github.com/laminas/laminas-cache for the canonical source repository
* @copyright https://github.com/laminas/laminas-cache/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-cache/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Cache\Storage;
use Laminas\Cache\Exception;
interface PluginAwareInterface extends PluginCapableInterface
{
/**
* Register a plugin
*
* @param Plugin\PluginInterface $plugin
* @param int $priority
* @return StorageInterface
* @throws Exception\LogicException
*/
public function addPlugin(Plugin\PluginInterface $plugin, $priority = 1);
/**
* Unregister an already registered plugin
*
* @param Plugin\PluginInterface $plugin
* @return StorageInterface
* @throws Exception\LogicException
*/
public function removePlugin(Plugin\PluginInterface $plugin);
}