mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 23:17:47 +01:00
33 lines
628 B
PHP
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'));
|
|
}
|
|
}
|