Document/Subscriber/ArticlePageSubscriber.php
public function checkOptions(PersistEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $autoRename = $event->getOption('auto_rename');

        if (false !== $autoRename) {
            throw new \InvalidArgumentException('Persist "ArticlePageDocument" only with option "auto_rename" set to "false" allowed');
        }
    }
public function checkOptions(PersistEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $autoRename = $event->getOption('auto_rename');

        if (false !== $autoRename) {
            throw new \InvalidArgumentException('Persist "ArticlePageDocument" only with option "auto_rename" set to "false" allowed');
        }
    }
public function checkOptions ( PersistEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ArticlePageDocument ) { return ; } $ autoRename = $ event -> getOption ( 'auto_rename' ) ; if ( false !== $ autoRename ) { throw new \ InvalidArgumentException ( 'Persist "ArticlePageDocument" only with option "auto_rename" set to "false" allowed' ) ; } }
Check for missing persist options.

@param PersistEvent $event
Check for missing persist options .