You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-06 13:02:55 +01:00
28 lines
529 B
PHP
28 lines
529 B
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Filter;
|
|
|
|
interface FilterManagerInterface
|
|
{
|
|
/**
|
|
* Get a driver instance.
|
|
*
|
|
* @param string|null $name
|
|
* @param array $context
|
|
*
|
|
* @return FilterInterface
|
|
*
|
|
* @throws \InvalidArgumentException
|
|
*/
|
|
public function make($name = null, array $context = array());
|
|
|
|
/**
|
|
* Register a custom driver creator.
|
|
*
|
|
* @param \Closure|FilterInterface $driver
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function addDriver($driver);
|
|
}
|