PHP 클래스 Sulu\Component\Content\Document\Subscriber\Compat\ContentMapperSubscriber

사용 중단: Here only for BC reasons
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__construct ( DocumentInspector $inspector, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Sulu\Component\Content\Mapper\ContentMapperInterface $mapper, SuluNodeHelper $nodeHelper, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager )
getSubscribedEvents ( )
handleFlush ( Sulu\Component\DocumentManager\Event\FlushEvent $event ) Dispatches the deprecated post save event for every persisted document.
handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) Saves all persisted documents to dispatch the deprecated post save event later when flushed.
handlePostRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) Dispatches the deprected post remove event.
handlePreRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) Dispatches the deprecated pre remove event.

비공개 메소드들

메소드 설명
documentToStructure ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document ) : StructureBridge Return a structure bridge corresponding to the given document.
getDeleteEvent ( $document )
supports ( $document )

메소드 상세

__construct() 공개 메소드

public __construct ( DocumentInspector $inspector, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Sulu\Component\Content\Mapper\ContentMapperInterface $mapper, SuluNodeHelper $nodeHelper, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager )
$inspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$mapper Sulu\Component\Content\Mapper\ContentMapperInterface
$nodeHelper Sulu\Component\Util\SuluNodeHelper
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

handleFlush() 공개 메소드

Dispatches the deprecated post save event for every persisted document.
public handleFlush ( Sulu\Component\DocumentManager\Event\FlushEvent $event )
$event Sulu\Component\DocumentManager\Event\FlushEvent

handlePersist() 공개 메소드

Saves all persisted documents to dispatch the deprecated post save event later when flushed.
public handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event )
$event Sulu\Component\DocumentManager\Event\PersistEvent

handlePostRemove() 공개 메소드

Dispatches the deprected post remove event.
public handlePostRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event )
$event Sulu\Component\DocumentManager\Event\RemoveEvent

handlePreRemove() 공개 메소드

Dispatches the deprecated pre remove event.
public handlePreRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event )
$event Sulu\Component\DocumentManager\Event\RemoveEvent