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