Skip to content

Commit

Permalink
added mongo DB support
Browse files Browse the repository at this point in the history
  • Loading branch information
raystorm committed Mar 4, 2014
1 parent 0518ace commit 00128ff
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ tmp/
.project .project
.settings .settings
.buildpath .buildpath
framework-standard-edition/web/css/
framework-standard-edition/web/js/
1 change: 1 addition & 0 deletions framework-standard-edition/app/AppKernel.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function registerBundles()
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
//Braincrafted Twitter Bootstrap Bundle //Braincrafted Twitter Bootstrap Bundle
new Bc\Bundle\BootstrapBundle\BcBootstrapBundle(), new Bc\Bundle\BootstrapBundle\BcBootstrapBundle(),
Expand Down
2 changes: 2 additions & 0 deletions framework-standard-edition/app/autoload.php
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php <?php


use Doctrine\Common\Annotations\AnnotationRegistry; use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
use Composer\Autoload\ClassLoader; use Composer\Autoload\ClassLoader;


/** /**
Expand All @@ -9,5 +10,6 @@
$loader = require __DIR__.'/../vendor/autoload.php'; $loader = require __DIR__.'/../vendor/autoload.php';


AnnotationRegistry::registerLoader(array($loader, 'loadClass')); AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
AnnotationDriver::registerAnnotationClasses();


return $loader; return $loader;
6 changes: 3 additions & 3 deletions framework-standard-edition/app/bootstrap.php.cache
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2230,11 +2230,11 @@ protected $booted = false;
protected $name; protected $name;
protected $startTime; protected $startTime;
protected $loadClassCache; protected $loadClassCache;
const VERSION ='2.4.1'; const VERSION ='2.4.2';
const VERSION_ID ='20401'; const VERSION_ID ='20402';
const MAJOR_VERSION ='2'; const MAJOR_VERSION ='2';
const MINOR_VERSION ='4'; const MINOR_VERSION ='4';
const RELEASE_VERSION ='1'; const RELEASE_VERSION ='2';
const EXTRA_VERSION =''; const EXTRA_VERSION ='';
public function __construct($environment, $debug) public function __construct($environment, $debug)
{ {
Expand Down
11 changes: 11 additions & 0 deletions framework-standard-edition/app/config/config.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ doctrine:
orm: orm:
auto_generate_proxy_classes: %kernel.debug% auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true auto_mapping: true

#TODO: update this for whatever Cloudbees uses
doctrine_mongodb:
connections:
default:
server: mongodb://localhost:27017
options: {}
default_database: test_database
document_managers:
default:
auto_mapping: true


# Swiftmailer Configuration # Swiftmailer Configuration
swiftmailer: swiftmailer:
Expand Down
2 changes: 2 additions & 0 deletions framework-standard-edition/composer.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"symfony/symfony" : "~2.4", "symfony/symfony" : "~2.4",
"doctrine/orm" : "~2.2,>=2.2.3", "doctrine/orm" : "~2.2,>=2.2.3",
"doctrine/doctrine-bundle" : "~1.2", "doctrine/doctrine-bundle" : "~1.2",
"doctrine/mongodb-odm" : "1.0.*@dev",
"doctrine/mongodb-odm-bundle" : "3.0.*@dev",
"twig/extensions" : "~1.0", "twig/extensions" : "~1.0",
"symfony/assetic-bundle" : "~2.3", "symfony/assetic-bundle" : "~2.3",
"symfony/swiftmailer-bundle" : "~2.3", "symfony/swiftmailer-bundle" : "~2.3",
Expand Down
Loading

0 comments on commit 00128ff

Please sign in to comment.