https://github.com/dantleech/developerbundle
Sulu Developer Bundle - lots of fixtures etc.
https://github.com/dantleech/developerbundle
Last synced: over 1 year ago
JSON representation
Sulu Developer Bundle - lots of fixtures etc.
- Host: GitHub
- URL: https://github.com/dantleech/developerbundle
- Owner: dantleech
- Created: 2015-03-16T12:21:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T12:26:20.000Z (over 11 years ago)
- Last Synced: 2025-03-24T03:37:45.544Z (over 1 year ago)
- Language: PHP
- Size: 547 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sulu Developer Bundle
=====================
This bundle aims to include lots of fixtures to quickly setup a testing
environment for the [Sulu CMF](https://sulu.io).
Installation
------------
````bash
$ composer require dtl/developer-bundle
````
Add it to your application kernel:
```bash
// app/AbstractKernel.php
// ...
abstract class AbstractKernel extends SuluKernel
{
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Sulu\Bundle\DeveloperBundle\DeveloperBundle();
// ...
}
//...
}
}
````
Loading fixtures
----------------
Load the fixtures as follows:
````bash
$ ./app/console doctrine:fixtures:load
````
Or as part of the normal Sulu build process:
````bash
$ ./app/console sulu:build dev
````