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
494 B
PHP
28 lines
494 B
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Manager;
|
|
|
|
interface ManagerInterface
|
|
{
|
|
/**
|
|
* Get a driver instance.
|
|
*
|
|
* @param string|null $driver
|
|
*
|
|
* @return object
|
|
*
|
|
* @throws \InvalidArgumentException
|
|
*/
|
|
public function make($driver = null);
|
|
|
|
/**
|
|
* Register a custom driver creator.
|
|
*
|
|
* @param string $alias
|
|
* @param \Closure|object $driver
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function addDriver($alias, $driver);
|
|
}
|