PHP Class Sulu\Bundle\DocumentManagerBundle\Initializer\Initializer

Can purge and initialize the content repository using any number of registered *initializers*. Initializers should be designed to be idempotent - they should not do anything to change the state of the repository beyond their initial changes: https://en.wikipedia.org/wiki/Idempotent
ファイルを表示 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $initializerMap = [] )
initialize ( Symfony\Component\Console\Output\OutputInterface $output = null, boolean $purge = false ) Initialize the content repository, optionally purging it before-hand.

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $initializerMap = [] )
$container Symfony\Component\DependencyInjection\ContainerInterface
$initializerMap array

initialize() public method

Initialize the content repository, optionally purging it before-hand.
public initialize ( Symfony\Component\Console\Output\OutputInterface $output = null, boolean $purge = false )
$output Symfony\Component\Console\Output\OutputInterface
$purge boolean