Files
php-flasher/NotyfFactory.php
T
Khoubza Younes 196d8a1164 update namespaces
2020-12-06 17:29:32 +01:00

33 lines
628 B
PHP

<?php
namespace Flasher\Notyf\Prime;
use Flasher\Prime\Factory\AbstractFactory;
final class NotyfFactory extends AbstractFactory
{
/**
* @inheritDoc
*/
public function createNotification()
{
return new Pnotify();
}
/**
* @inheritDoc
*/
public function createNotificationBuilder()
{
return new PnotifyBuilder($this->getEventDispatcher(), $this->createNotification(), 'notyf');
}
/**
* @inheritDoc
*/
public function supports($name = null, array $context = array())
{
return in_array($name, array(__CLASS__, 'notyf'));
}
}