Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added mongo DB support

  • Loading branch information...
commit 00128ff5cfc65ba4b15a72dd1677238fed536e77 1 parent 0518ace
Tom Burton authored
2  .gitignore
View
@@ -4,3 +4,5 @@ tmp/
.project
.settings
.buildpath
+framework-standard-edition/web/css/
+framework-standard-edition/web/js/
1  framework-standard-edition/app/AppKernel.php
View
@@ -15,6 +15,7 @@ public function registerBundles()
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
+ new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
//Braincrafted Twitter Bootstrap Bundle
new Bc\Bundle\BootstrapBundle\BcBootstrapBundle(),
2  framework-standard-edition/app/autoload.php
View
@@ -1,6 +1,7 @@
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
+use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
use Composer\Autoload\ClassLoader;
/**
@@ -9,5 +10,6 @@
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
+AnnotationDriver::registerAnnotationClasses();
return $loader;
6 framework-standard-edition/app/bootstrap.php.cache
View
@@ -2230,11 +2230,11 @@ protected $booted = false;
protected $name;
protected $startTime;
protected $loadClassCache;
-const VERSION ='2.4.1';
-const VERSION_ID ='20401';
+const VERSION ='2.4.2';
+const VERSION_ID ='20402';
const MAJOR_VERSION ='2';
const MINOR_VERSION ='4';
-const RELEASE_VERSION ='1';
+const RELEASE_VERSION ='2';
const EXTRA_VERSION ='';
public function __construct($environment, $debug)
{
11 framework-standard-edition/app/config/config.yml
View
@@ -103,6 +103,17 @@ doctrine:
orm:
auto_generate_proxy_classes: %kernel.debug%
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:
2  framework-standard-edition/composer.json
View
@@ -10,6 +10,8 @@
"symfony/symfony" : "~2.4",
"doctrine/orm" : "~2.2,>=2.2.3",
"doctrine/doctrine-bundle" : "~1.2",
+ "doctrine/mongodb-odm" : "1.0.*@dev",
+ "doctrine/mongodb-odm-bundle" : "3.0.*@dev",
"twig/extensions" : "~1.0",
"symfony/assetic-bundle" : "~2.3",
"symfony/swiftmailer-bundle" : "~2.3",
326 framework-standard-edition/composer.lock
View
@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
- "hash": "4293a0e891f0e51079c20394f44c7784",
+ "hash": "3a51facbee8f2d52b610e4f5b18a6272",
"packages": [
{
"name": "braincrafted/bootstrap-bundle",
@@ -12,12 +12,12 @@
"source": {
"type": "git",
"url": "https://github.com/braincrafted/bootstrap-bundle.git",
- "reference": "v1.4.2"
+ "reference": "9d25ca1dca74722091efef00b4184761adf82549"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/braincrafted/bootstrap-bundle/zipball/v1.4.2",
- "reference": "v1.4.2",
+ "url": "https://api.github.com/repos/braincrafted/bootstrap-bundle/zipball/9d25ca1dca74722091efef00b4184761adf82549",
+ "reference": "9d25ca1dca74722091efef00b4184761adf82549",
"shasum": ""
},
"require": {
@@ -101,11 +101,9 @@
],
"authors": [
{
- "name": "Jonathan H. Wage",
+ "name": "Jonathan Wage",
"email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
->>>>>>> b334bef84efe208c836a12374d96300b84c8ee88
+ "homepage": "http://www.jwage.com/"
},
{
"name": "Guilherme Blanco",
@@ -212,16 +210,16 @@
},
{
"name": "doctrine/collections",
- "version": "v1.1",
+ "version": "v1.2",
"source": {
"type": "git",
"url": "https://github.com/doctrine/collections.git",
- "reference": "560f29c39cfcfbcd210e5d549d993a39d898b04b"
+ "reference": "b99c5c46c87126201899afe88ec490a25eedd6a2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/collections/zipball/560f29c39cfcfbcd210e5d549d993a39d898b04b",
- "reference": "560f29c39cfcfbcd210e5d549d993a39d898b04b",
+ "url": "https://api.github.com/repos/doctrine/collections/zipball/b99c5c46c87126201899afe88ec490a25eedd6a2",
+ "reference": "b99c5c46c87126201899afe88ec490a25eedd6a2",
"shasum": ""
},
"require": {
@@ -230,7 +228,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.1.x-dev"
+ "dev-master": "1.2.x-dev"
}
},
"autoload": {
@@ -246,7 +244,8 @@
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/"
+ "homepage": "http://www.jwage.com/",
+ "role": "Creator"
},
{
"name": "Guilherme Blanco",
@@ -275,7 +274,7 @@
"collections",
"iterator"
],
- "time": "2013-03-07 12:15:54"
+ "time": "2014-02-03 23:07:43"
},
{
"name": "doctrine/common",
@@ -318,8 +317,7 @@
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
+ "homepage": "http://www.jwage.com/"
},
{
"name": "Guilherme Blanco",
@@ -519,8 +517,7 @@
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
+ "homepage": "http://www.jwage.com/"
},
{
"name": "Guilherme Blanco",
@@ -605,17 +602,238 @@
"time": "2013-01-12 18:59:04"
},
{
+ "name": "doctrine/mongodb",
+ "version": "1.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/mongodb.git",
+ "reference": "ac63fdf9847a5ec6d44721526623e8bddaa25fe6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/mongodb/zipball/ac63fdf9847a5ec6d44721526623e8bddaa25fe6",
+ "reference": "ac63fdf9847a5ec6d44721526623e8bddaa25fe6",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/common": ">=2.1.0,<2.5-dev",
+ "ext-mongo": ">=1.2.12,<1.6-dev",
+ "php": ">=5.3.2"
+ },
+ "require-dev": {
+ "jmikola/geojson": "~1.0"
+ },
+ "suggest": {
+ "jmikola/geojson": "Support GeoJSON geometry objects in 2dsphere queries"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Doctrine\\MongoDB": "lib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bulat Shakirzyanov",
+ "email": "mallluhuct@gmail.com",
+ "homepage": "http://avalanche123.com"
+ },
+ {
+ "name": "Jonathan H. Wage",
+ "email": "jonwage@gmail.com",
+ "homepage": "http://www.jwage.com/",
+ "role": "Creator"
+ },
+ {
+ "name": "Kris Wallsmith",
+ "email": "kris.wallsmith@gmail.com",
+ "homepage": "http://kriswallsmith.net/"
+ },
+ {
+ "name": "Jeremy Mikola",
+ "email": "jmikola@gmail.com",
+ "homepage": "http://jmikola.net"
+ }
+ ],
+ "description": "Doctrine MongoDB Abstraction Layer",
+ "homepage": "http://www.doctrine-project.org",
+ "keywords": [
+ "database",
+ "mongodb",
+ "persistence"
+ ],
+ "time": "2014-01-09 21:24:02"
+ },
+ {
+ "name": "doctrine/mongodb-odm",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/mongodb-odm.git",
+ "reference": "e99d818b4224b35fab38abc230696d9282a1ecea"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/mongodb-odm/zipball/e99d818b4224b35fab38abc230696d9282a1ecea",
+ "reference": "e99d818b4224b35fab38abc230696d9282a1ecea",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/annotations": "~1.0",
+ "doctrine/cache": "~1.0",
+ "doctrine/collections": "~1.1",
+ "doctrine/common": "2.4.*",
+ "doctrine/inflector": "~1.0",
+ "doctrine/mongodb": "~1.1",
+ "php": ">=5.3.2",
+ "symfony/console": "~2.0"
+ },
+ "require-dev": {
+ "symfony/yaml": "~2.0"
+ },
+ "suggest": {
+ "symfony/yaml": "Enables the YAML metadata mapping driver"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Doctrine\\ODM\\MongoDB": "lib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bulat Shakirzyanov",
+ "email": "mallluhuct@gmail.com",
+ "homepage": "http://avalanche123.com"
+ },
+ {
+ "name": "Jonathan H. Wage",
+ "email": "jonwage@gmail.com",
+ "homepage": "http://www.jwage.com/",
+ "role": "Creator"
+ },
+ {
+ "name": "Kris Wallsmith",
+ "email": "kris.wallsmith@gmail.com",
+ "homepage": "http://kriswallsmith.net/"
+ },
+ {
+ "name": "Jeremy Mikola",
+ "email": "jmikola@gmail.com",
+ "homepage": "http://jmikola.net"
+ }
+ ],
+ "description": "Doctrine MongoDB Object Document Mapper",
+ "homepage": "http://www.doctrine-project.org",
+ "keywords": [
+ "database",
+ "mongodb",
+ "odm",
+ "persistence"
+ ],
+ "time": "2014-02-27 04:04:39"
+ },
+ {
+ "name": "doctrine/mongodb-odm-bundle",
+ "version": "dev-master",
+ "target-dir": "Doctrine/Bundle/MongoDBBundle",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/DoctrineMongoDBBundle.git",
+ "reference": "b9a52dc9961d63f837af3b1bdbbb7759476d91d9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/DoctrineMongoDBBundle/zipball/b9a52dc9961d63f837af3b1bdbbb7759476d91d9",
+ "reference": "b9a52dc9961d63f837af3b1bdbbb7759476d91d9",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/mongodb-odm": "~1.0.0-beta5@dev",
+ "php": ">=5.3.2",
+ "symfony/doctrine-bridge": "~2.1",
+ "symfony/framework-bundle": "~2.1",
+ "symfony/options-resolver": "~2.1"
+ },
+ "require-dev": {
+ "doctrine/data-fixtures": "@dev",
+ "symfony/form": "~2.1",
+ "symfony/yaml": "~2.1"
+ },
+ "suggest": {
+ "doctrine/data-fixtures": "Load data fixtures"
+ },
+ "type": "symfony-bundle",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Doctrine\\Bundle\\MongoDBBundle": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bulat Shakirzyanov",
+ "email": "mallluhuct@gmail.com",
+ "homepage": "http://avalanche123.com"
+ },
+ {
+ "name": "Jonathan Wage",
+ "email": "jonwage@gmail.com",
+ "homepage": "http://www.jwage.com/",
+ "role": "Creator"
+ },
+ {
+ "name": "Kris Wallsmith",
+ "email": "kris@symfony.com"
+ }
+ ],
+ "description": "Symfony2 Doctrine MongoDB Bundle",
+ "homepage": "http://www.doctrine-project.org",
+ "keywords": [
+ "mongodb",
+ "persistence",
+ "symfony"
+ ],
+ "time": "2014-02-04 16:15:58"
+ },
+ {
"name": "doctrine/orm",
- "version": "v2.4.1",
+ "version": "v2.4.2",
"source": {
"type": "git",
"url": "https://github.com/doctrine/doctrine2.git",
- "reference": "84373d05a4198ec380918d535abf83c454c3867f"
+ "reference": "0363a5548d9263f979f9ca149decb9cfc66419ab"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/84373d05a4198ec380918d535abf83c454c3867f",
- "reference": "84373d05a4198ec380918d535abf83c454c3867f",
+ "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/0363a5548d9263f979f9ca149decb9cfc66419ab",
+ "reference": "0363a5548d9263f979f9ca149decb9cfc66419ab",
"shasum": ""
},
"require": {
@@ -678,7 +896,7 @@
"database",
"orm"
],
- "time": "2013-11-12 12:40:13"
+ "time": "2014-02-08 16:35:09"
},
{
"name": "ferdynator/phpword",
@@ -686,12 +904,12 @@
"source": {
"type": "git",
"url": "https://github.com/ferdynator/PHPWord.git",
- "reference": "680f79c005e7c2153b034e62a35ae0588b3ac542"
+ "reference": "b2894ea2f29d14aa2869aa6bee00158a509cc577"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ferdynator/PHPWord/zipball/680f79c005e7c2153b034e62a35ae0588b3ac542",
- "reference": "680f79c005e7c2153b034e62a35ae0588b3ac542",
+ "url": "https://api.github.com/repos/ferdynator/PHPWord/zipball/b2894ea2f29d14aa2869aa6bee00158a509cc577",
+ "reference": "b2894ea2f29d14aa2869aa6bee00158a509cc577",
"shasum": ""
},
"require": {
@@ -715,7 +933,7 @@
"docx",
"word"
],
- "time": "2013-12-05 17:04:09"
+ "time": "2014-02-25 22:50:17"
},
{
"name": "fp/lightopenid",
@@ -1485,17 +1703,17 @@
},
{
"name": "symfony/monolog-bundle",
- "version": "v2.5.0",
+ "version": "v2.5.1",
"target-dir": "Symfony/Bundle/MonologBundle",
"source": {
"type": "git",
"url": "https://github.com/symfony/MonologBundle.git",
- "reference": "29a17a347dfc41aed34ce9b72cceaf375635c408"
+ "reference": "71ad844ac29401f86619f9d643393265451e858b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/MonologBundle/zipball/29a17a347dfc41aed34ce9b72cceaf375635c408",
- "reference": "29a17a347dfc41aed34ce9b72cceaf375635c408",
+ "url": "https://api.github.com/repos/symfony/MonologBundle/zipball/71ad844ac29401f86619f9d643393265451e858b",
+ "reference": "71ad844ac29401f86619f9d643393265451e858b",
"shasum": ""
},
"require": {
@@ -1528,7 +1746,9 @@
"authors": [
{
"name": "Fabien Potencier",
- "email": "fabien@symfony.com"
+ "email": "fabien@symfony.com",
+ "homepage": "http://fabien.potencier.org",
+ "role": "Lead Developer"
},
{
"name": "Symfony Community",
@@ -1541,7 +1761,7 @@
"log",
"logging"
],
- "time": "2014-01-19 13:23:40"
+ "time": "2014-02-19 14:49:26"
},
{
"name": "symfony/swiftmailer-bundle",
@@ -1600,16 +1820,16 @@
},
{
"name": "symfony/symfony",
- "version": "v2.4.1",
+ "version": "v2.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/symfony.git",
- "reference": "377a5fb23bfdc2fb616610b7b7ab7cc9a50e614d"
+ "reference": "b70633f92ff71ef490af4c17e7ca3f3bf3d0f304"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/symfony/zipball/377a5fb23bfdc2fb616610b7b7ab7cc9a50e614d",
- "reference": "377a5fb23bfdc2fb616610b7b7ab7cc9a50e614d",
+ "url": "https://api.github.com/repos/symfony/symfony/zipball/b70633f92ff71ef490af4c17e7ca3f3bf3d0f304",
+ "reference": "b70633f92ff71ef490af4c17e7ca3f3bf3d0f304",
"shasum": ""
},
"require": {
@@ -1697,7 +1917,9 @@
"authors": [
{
"name": "Fabien Potencier",
- "email": "fabien@symfony.com"
+ "email": "fabien@symfony.com",
+ "homepage": "http://fabien.potencier.org",
+ "role": "Lead Developer"
},
{
"name": "Symfony Community",
@@ -1709,7 +1931,7 @@
"keywords": [
"framework"
],
- "time": "2014-01-05 02:12:11"
+ "time": "2014-02-12 19:27:03"
},
{
"name": "twig/extensions",
@@ -1760,16 +1982,16 @@
},
{
"name": "twig/twig",
- "version": "v1.15.0",
+ "version": "v1.15.1",
"source": {
"type": "git",
"url": "https://github.com/fabpot/Twig.git",
- "reference": "85e4ff98000157ff753d934b9f13659a953f5666"
+ "reference": "1fb5784662f438d7d96a541e305e28b812e2eeed"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fabpot/Twig/zipball/85e4ff98000157ff753d934b9f13659a953f5666",
- "reference": "85e4ff98000157ff753d934b9f13659a953f5666",
+ "url": "https://api.github.com/repos/fabpot/Twig/zipball/1fb5784662f438d7d96a541e305e28b812e2eeed",
+ "reference": "1fb5784662f438d7d96a541e305e28b812e2eeed",
"shasum": ""
},
"require": {
@@ -1793,11 +2015,19 @@
"authors": [
{
"name": "Fabien Potencier",
- "email": "fabien@symfony.com"
+ "email": "fabien@symfony.com",
+ "homepage": "http://fabien.potencier.org",
+ "role": "Lead Developer"
},
{
"name": "Armin Ronacher",
- "email": "armin.ronacher@active-4.com"
+ "email": "armin.ronacher@active-4.com",
+ "role": "Project Founder"
+ },
+ {
+ "name": "Twig Team",
+ "homepage": "https://github.com/fabpot/Twig/graphs/contributors",
+ "role": "Contributors"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
@@ -1805,7 +2035,7 @@
"keywords": [
"templating"
],
- "time": "2013-12-06 07:47:10"
+ "time": "2014-02-13 10:19:29"
},
{
"name": "twitter/bootstrap",
@@ -2564,6 +2794,8 @@
],
"minimum-stability": "stable",
"stability-flags": {
+ "doctrine/mongodb-odm": 20,
+ "doctrine/mongodb-odm-bundle": 20,
"ferdynator/phpword": 20,
"zendframework/zendservice-livedocx": 20,
"fp/openid-bundle": 20,
68 framework-standard-edition/src/Tburton/ResumeBundle/Document/resumeDocument.php
View
@@ -0,0 +1,68 @@
+<?php
+namespace Tburton\ResumeBundle\Document;
+
+use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
+
+/**
+ * for storing the various resume formats in Mongo
+ * @MongoDB\Document
+ */
+class resumeDocument
+{
+ /**
+ * String indicating File type
+ *
+ * @MongoDB\string
+ */
+ protected $ext;
+
+ /**
+ * File contents
+ * @MongoDB\file
+ */
+ protected $file;
+
+ /**
+ * Set ext
+ *
+ * @param string $ext
+ * @return self
+ */
+ public function setExt($ext)
+ {
+ $this->ext = $ext;
+ return $this;
+ }
+
+ /**
+ * Get ext
+ *
+ * @return string $ext
+ */
+ public function getExt()
+ {
+ return $this->ext;
+ }
+
+ /**
+ * Set file
+ *
+ * @param file $file
+ * @return self
+ */
+ public function setFile($file)
+ {
+ $this->file = $file;
+ return $this;
+ }
+
+ /**
+ * Get file
+ *
+ * @return file $file
+ */
+ public function getFile()
+ {
+ return $this->file;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.