Skip to content

maveric/sandbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonata Standard Edition

What's inside?

Sonata Standard Edition comes pre-configured with the following bundles:

Symfony Standard Edition

  • FrameworkBundle
  • SensioFrameworkExtraBundle
  • DoctrineBundle
  • TwigBundle
  • SwiftmailerBundle
  • MonologBundle
  • AsseticBundle
  • JMSSecurityExtraBundle
  • WebProfilerBundle (in dev/test env)
  • SensioDistributionBundle (in dev/test env)
  • SensioGeneratorBundle (in dev/test env)
  • AcmeDemoBundle (in dev/test env)

Sonata Bundles

  • SonataAdminBundle - The missing Symfony2 Admin Generator
  • SonataMediaBundle
  • SonataPageBundle
  • SonataUserBundle
  • SonataEasyExtendsBundle
  • SonataIntlBundle
  • SonataNewsBundle
  • SonataBluePrintBundle
  • SonatajQueryBundle

FOS Bundles

  • FOSUserBundle

Behat Bundles

  • MinkBundle
  • BehatBundle

Installation

Run the following commands:

git clone http://github.com/sonata-project/sandbox.git sonata-sandbox
cd sonata-sandbox
rm -rf .git
git init
git add .gitignore *
git commit -m "Initial commit (from the Sonata Sandbox)"
php bin/vendors install
git add *
git commit -m "add submodules"
cp app/config/parameters.ini.sample app/config/parameters.ini
cp app/config/parameters.ini.sample app/config/validation_parameters.ini
cp app/config/parameters.ini.sample app/config/production_parameters.ini

Note

The bin/vendor script does not behave like the one provided by the Symfony2 Standard Edition. The script install vendors as git submodules.

Database initialization

At this point, the app/console command should start with no issues. However some you need the complete some others step:

  • database configuration (edit the config/parameters.ini file)

then runs the commands:

app/console doctrine:database:create
app/console doctrine:schema:create

Sonata Page Bundle

By default the Sonata Page bundle is activated, so you need to starts 2 commands before going further:

app/console sonata:page:update-core-routes
app/console sonata:page:create-snapshots

Note

The update-core-routes populates the database with page from the routing information. The create-snapshots create a snapshot (a public page version) from the created pages.

Unit Testing

Automatic Unit Testing with watchr:

gem install watchr
cd /path/to/symfony-project
watchr phpunit.watchr

reference : https://gist.github.com/1151531

Enjoy!

About

sonata project in a sandbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 89.4%
  • Ruby 10.6%