Files
php-flasher/FlasherInterface.php
T
2020-12-06 04:03:14 +01:00

30 lines
584 B
PHP

<?php
namespace Flasher\Prime;
use Flasher\Prime\Factory\FlasherFactoryInterface;
interface FlasherInterface
{
/**
* Get a driver instance.
*
* @param string|null $name
* @param array $context
*
* @return FlasherFactoryInterface
*
* @throws \InvalidArgumentException
*/
public function make($name = null, array $context = array());
/**
* Register a custom driver creator.
*
* @param \Closure|FlasherFactoryInterface $driver
*
* @return $this
*/
public function addDriver($driver);
}