PHP 클래스 Sylius\Bundle\CoreBundle\EventListener\ChannelDeletionListener

저자: Gustavo Perdomo ([email protected])
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__construct ( Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository $repository )
onChannelPreDelete ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event ) Prevent channel deletion if no more channels enabled.

메소드 상세

__construct() 공개 메소드

public __construct ( Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository $repository )
$repository Sylius\Bundle\ChannelBundle\Doctrine\ORM\ChannelRepository

onChannelPreDelete() 공개 메소드

Prevent channel deletion if no more channels enabled.
public onChannelPreDelete ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent