sulu/developer-bundle

The Sulu Bundle for developers

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 23

Forks: 1

Open Issues: 2

Type:sulu-bundle

dev-master 2015-11-26 15:37 UTC

README

This bundle aims to include lots of fixtures to quickly setup a testing environment for the Sulu CMF.

Installation

$ composer require --dev sulu/developer-bundle:dev-master

Add it to your application kernel:

// app/AbstractKernel.php
// ...

abstract class AbstractKernel extends SuluKernel
{
    
    public function registerBundles()
    {
        // ...
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new Sulu\Bundle\DeveloperBundle\SuluDeveloperBundle();
            // ...
        }

        //...
    }
}

Loading fixtures

Load the fixtures as follows:

$ ./app/console doctrine:fixtures:load

Or as part of the normal Sulu build process:

$ ./app/console sulu:build dev