PHP Класс GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber

Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( GrumPHP $grumPHP, Repository $repository, GrumPHP\IO\IOInterface $io )
getSubscribedEvents ( ) : array
handleErrors ( ) : void
popStash ( RunnerEvent $e ) : void
saveStash ( RunnerEvent $e ) : void

Приватные методы

Метод Описание
doPopStash ( ) : void
doSaveStash ( ) Check if there is a pending diff and stash the changes.
isStashEnabled ( GrumPHP\Task\Context\ContextInterface $context ) : boolean
registerShutdownHandler ( ) : void Make sure to fetch errors and pop the stash before crashing

Описание методов

__construct() публичный Метод

public __construct ( GrumPHP $grumPHP, Repository $repository, GrumPHP\IO\IOInterface $io )
$grumPHP GrumPHP\Configuration\GrumPHP
$repository Gitonomy\Git\Repository
$io GrumPHP\IO\IOInterface

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( ) : array
Результат array

handleErrors() публичный Метод

public handleErrors ( ) : void
Результат void

popStash() публичный Метод

public popStash ( RunnerEvent $e ) : void
$e GrumPHP\Event\RunnerEvent
Результат void

saveStash() публичный Метод

public saveStash ( RunnerEvent $e ) : void
$e GrumPHP\Event\RunnerEvent
Результат void