Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the initial sandbox

  • Loading branch information...
commit 355e57a995227e59d6492885a2ec4daf894b7e4d 0 parents
@fabpot fabpot authored
Showing with 31,089 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +41 −0 README
  3. +20 −0 create_sandbox.sh
  4. +1 −0  hello/.htaccess
  5. +51 −0 hello/HelloKernel.php
  6. 0  hello/cache/.symfony
  7. +3 −0  hello/config/config.yml
  8. +10 −0 hello/config/config_dev.yml
  9. +2 −0  hello/config/config_prod.yml
  10. +6 −0 hello/config/routing.yml
  11. +11 −0 hello/console
  12. 0  hello/logs/.symfony
  13. +1 −0  src/.htaccess
  14. +9 −0 src/Application/HelloBundle/Bundle.php
  15. +13 −0 src/Application/HelloBundle/Controller/HelloController.php
  16. +3 −0  src/Application/HelloBundle/Resources/config/routing.yml
  17. +3 −0  src/Application/HelloBundle/Resources/views/Hello/index.php
  18. +9 −0 src/Application/HelloBundle/Resources/views/layout.php
  19. 0  src/Bundle/.symfony
  20. +21 −0 src/autoload.php
  21. +1 −0  src/vendor/doctrine/CHANGELOG
  22. +39 −0 src/vendor/doctrine/COPYRIGHT
  23. +504 −0 src/vendor/doctrine/LICENSE
  24. +88 −0 src/vendor/doctrine/UPGRADE_TO_2_0
  25. +4 −0 src/vendor/doctrine/bin/doctrine
  26. +29 −0 src/vendor/doctrine/bin/doctrine.php
  27. +13 −0 src/vendor/doctrine/build.properties.dev
  28. +228 −0 src/vendor/doctrine/build.xml
  29. +264 −0 src/vendor/doctrine/doctrine-mapping.xsd
  30. +92 −0 src/vendor/doctrine/jpgraph.php
  31. +65 −0 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Annotation.php
  32. +47 −0 src/vendor/doctrine/lib/Doctrine/Common/Annotations/AnnotationException.php
  33. +192 −0 src/vendor/doctrine/lib/Doctrine/Common/Annotations/AnnotationReader.php
  34. +136 −0 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Lexer.php
  35. +446 −0 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Parser.php
  36. +219 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/AbstractCache.php
  37. +85 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/ApcCache.php
  38. +87 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/ArrayCache.php
  39. +70 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/Cache.php
  40. +117 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/MemcacheCache.php
  41. +102 −0 src/vendor/doctrine/lib/Doctrine/Common/Cache/XcacheCache.php
  42. +149 −0 src/vendor/doctrine/lib/Doctrine/Common/ClassLoader.php
  43. +235 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/AbstractNamespace.php
  44. +298 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/CliController.php
  45. +57 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/CliException.php
  46. +86 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Configuration.php
  47. +103 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Option.php
  48. +482 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/OptionGroup.php
  49. +188 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Printers/AbstractPrinter.php
  50. +210 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Printers/AnsiColorPrinter.php
  51. +46 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Printers/NormalPrinter.php
  52. +93 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Style.php
  53. +192 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/TaskDocumentation.php
  54. +251 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/TaskNamespace.php
  55. +200 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Tasks/AbstractTask.php
  56. +79 −0 src/vendor/doctrine/lib/Doctrine/Common/Cli/Tasks/HelpTask.php
  57. +430 −0 src/vendor/doctrine/lib/Doctrine/Common/Collections/ArrayCollection.php
  58. +178 −0 src/vendor/doctrine/lib/Doctrine/Common/Collections/Collection.php
  59. +142 −0 src/vendor/doctrine/lib/Doctrine/Common/DoctrineException.php
  60. +61 −0 src/vendor/doctrine/lib/Doctrine/Common/EventArgs.php
  61. +138 −0 src/vendor/doctrine/lib/Doctrine/Common/EventManager.php
  62. +46 −0 src/vendor/doctrine/lib/Doctrine/Common/EventSubscriber.php
  63. +133 −0 src/vendor/doctrine/lib/Doctrine/Common/GlobalClassLoader.php
  64. +111 −0 src/vendor/doctrine/lib/Doctrine/Common/IsolatedClassLoader.php
  65. +258 −0 src/vendor/doctrine/lib/Doctrine/Common/Lexer.php
  66. +45 −0 src/vendor/doctrine/lib/Doctrine/Common/NotifyPropertyChanged.php
  67. +48 −0 src/vendor/doctrine/lib/Doctrine/Common/PropertyChangedListener.php
  68. +113 −0 src/vendor/doctrine/lib/Doctrine/Common/Util/Debug.php
  69. +72 −0 src/vendor/doctrine/lib/Doctrine/Common/Util/Inflector.php
  70. +106 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Configuration.php
  71. +811 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Connection.php
  72. +44 −0 src/vendor/doctrine/lib/Doctrine/DBAL/ConnectionException.php
  73. +50 −0 src/vendor/doctrine/lib/Doctrine/DBAL/DBALException.php
  74. +55 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver.php
  75. +44 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/Connection.php
  76. +93 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/OCI8/Driver.php
  77. +108 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
  78. +30 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php
  79. +190 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
  80. +40 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOConnection.php
  81. +60 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOMsSql/Connection.php
  82. +84 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOMsSql/Driver.php
  83. +97 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
  84. +88 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOOracle/Driver.php
  85. +70 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
  86. +97 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php
  87. +33 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/PDOStatement.php
  88. +216 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Driver/Statement.php
  89. +160 −0 src/vendor/doctrine/lib/Doctrine/DBAL/DriverManager.php
  90. +79 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Event/ConnectionEventArgs.php
  91. +75 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Event/Listeners/MysqlSessionInit.php
  92. +82 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Event/Listeners/OracleSessionInit.php
  93. +43 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Events.php
  94. +37 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Logging/DebugStack.php
  95. +20 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Logging/EchoSqlLogger.php
  96. +14 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Logging/SqlLogger.php
  97. +1,849 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
  98. +516 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
  99. +806 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
  100. +665 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/OraclePlatform.php
  101. +795 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
  102. +467 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
  103. +85 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/AbstractAsset.php
  104. +965 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
  105. +331 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Column.php
  106. +58 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/ColumnDiff.php
  107. +403 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Comparator.php
  108. +38 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Constraint.php
  109. +129 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
  110. +109 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Index.php
  111. +399 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php
  112. +287 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
  113. +289 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/OracleSchemaManager.php
  114. +340 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
  115. +310 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Schema.php
  116. +76 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/SchemaConfig.php
  117. +171 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/SchemaDiff.php
  118. +122 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/SchemaException.php
  119. +77 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Sequence.php
  120. +260 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
  121. +623 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Table.php
  122. +139 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/TableDiff.php
  123. +145 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Visitor/CreateSchemaSqlCollector.php
  124. +146 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php
  125. +82 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Visitor/FixSchema.php
  126. +75 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Schema/Visitor/Visitor.php
  127. +118 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Tools/Cli/Tasks/RunSqlTask.php
  128. +31 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/ArrayType.php
  129. +27 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/BigIntType.php
  130. +33 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/BooleanType.php
  131. +35 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/DateTimeType.php
  132. +35 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/DateType.php
  133. +26 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/DecimalType.php
  134. +32 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/IntegerType.php
  135. +31 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/ObjectType.php
  136. +31 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/SmallIntType.php
  137. +29 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/StringType.php
  138. +22 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/TextType.php
  139. +48 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/TimeType.php
  140. +186 −0 src/vendor/doctrine/lib/Doctrine/DBAL/Types/Type.php
  141. +570 −0 src/vendor/doctrine/lib/Doctrine/ORM/AbstractQuery.php
  142. +285 −0 src/vendor/doctrine/lib/Doctrine/ORM/Configuration.php
  143. +589 −0 src/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php
  144. +178 −0 src/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php
  145. +26 −0 src/vendor/doctrine/lib/Doctrine/ORM/Event/LifecycleEventArgs.php
  146. +27 −0 src/vendor/doctrine/lib/Doctrine/ORM/Event/LoadClassMetadataEventArgs.php
  147. +34 −0 src/vendor/doctrine/lib/Doctrine/ORM/Event/PreInsertUpdateEventArgs.php
  148. +111 −0 src/vendor/doctrine/lib/Doctrine/ORM/Events.php
  149. +31 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/AbstractIdGenerator.php
  150. +69 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/Assigned.php
  151. +29 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/IdentityGenerator.php
  152. +105 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/SequenceGenerator.php
  153. +29 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/SequenceIdentityGenerator.php
  154. +19 −0 src/vendor/doctrine/lib/Doctrine/ORM/Id/TableGenerator.php
  155. +121 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/CommitOrderCalculator.php
  156. +281 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
  157. +230 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
  158. +17 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/HydrationException.php
  159. +108 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/IterableResult.php
  160. +431 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
  161. +52 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ScalarHydrator.php
  162. +46 −0 src/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php
  163. +409 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/AssociationMapping.php
  164. +401 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadata.php
  165. +377 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
  166. +1,626 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
  167. +210 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php
  168. +446 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
  169. +177 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
  170. +136 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
  171. +61 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/Driver.php
  172. +166 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/PhpDriver.php
  173. +448 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php
  174. +429 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
  175. +221 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/ManyToManyMapping.php
  176. +173 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/MappingException.php
  177. +131 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/OneToManyMapping.php
  178. +306 −0 src/vendor/doctrine/lib/Doctrine/ORM/Mapping/OneToOneMapping.php
  179. +96 −0 src/vendor/doctrine/lib/Doctrine/ORM/NativeQuery.php
  180. +17 −0 src/vendor/doctrine/lib/Doctrine/ORM/NoResultException.php
  181. +11 −0 src/vendor/doctrine/lib/Doctrine/ORM/NonUniqueResultException.php
  182. +59 −0 src/vendor/doctrine/lib/Doctrine/ORM/ORMException.php
  183. +39 −0 src/vendor/doctrine/lib/Doctrine/ORM/OptimisticLockException.php
Sorry, we could not display the entire diff because too many files (779) changed.
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2004-2010 Fabien Potencier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
41 README
@@ -0,0 +1,41 @@
+README
+======
+
+What is Symfony?
+----------------
+
+Symfony is a PHP 5.3 full-stack web framework. It is written with speed and
+flexibility in mind. It allows developers to built better and easy to maintain
+websites with PHP.
+
+Symfony can be used to develop all kind of websites, from your personal blog
+to hight traffic ones like Dailymotion or Yahoo! Answers.
+
+High Performance
+----------------
+
+Built with performance in mind, Symfony 2 is one of the fastest PHP framework.
+It is up to 3 times faster than symfony 1.4 or Zend Framework 1.10 and
+consumes half the memory.
+
+Requirements
+------------
+
+Symfony is only supported on PHP 5.3.0 and up. To check the compatibility of
+your environment with Symfony, you can run the `web/check.php` script, bundled
+with this sandbox.
+
+Documentation
+-------------
+
+Symfony 2.0 is still in the early stages of development, but the "[Quick Tour][1]"
+tutorial can get you started fast.
+
+The "Quick Tour" tutorial barely scratches the surface of Symfony 2.0 but it
+gives you a first feeling of the framework. If like us you think that Symfony
+2.0 can be of great help to speed up your development and take the quality of
+your work to the next level, visit the official [Symfony 2 website][2] to
+learn about it.
+
+[1]: http://symfony-reloaded.org/learn
+[2]: http://symfony-reloaded.org/
20 create_sandbox.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+DIR=`pwd`
+rm -rf /tmp/sandbox
+mkdir /tmp/sandbox
+cp -r hello /tmp/sandbox/
+cp -r src /tmp/sandbox/
+cp -r web /tmp/sandbox/
+cp -r README /tmp/sandbox/
+cp -r LICENSE /tmp/sandbox/
+cd /tmp/sandbox
+sudo rm -rf create_sandbox.sh hello/cache/* hello/logs/* .git*
+chmod 777 hello/cache hello/logs
+cd ..
+# avoid the creation of ._* files
+export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
+export COPYFILE_DISABLE=true
+tar zcpf $DIR/sandbox_2_0_PR1.tgz sandbox
+rm $DIR/sandbox_2_0_PR1.zip
+zip -rq $DIR/sandbox_2_0_PR1.zip sandbox
1  hello/.htaccess
@@ -0,0 +1 @@
+deny from all
51 hello/HelloKernel.php
@@ -0,0 +1,51 @@
+<?php
+
+require_once __DIR__.'/../src/autoload.php';
+require_once __DIR__.'/../src/vendor/symfony/src/Symfony/Foundation/bootstrap.php';
+
+use Symfony\Foundation\Kernel;
+use Symfony\Components\DependencyInjection\Loader\YamlFileLoader as ContainerLoader;
+use Symfony\Components\Routing\Loader\YamlFileLoader as RoutingLoader;
+
+class HelloKernel extends Kernel
+{
+ public function registerRootDir()
+ {
+ return __DIR__;
+ }
+
+ public function registerBundles()
+ {
+ return array(
+ new Symfony\Foundation\Bundle\KernelBundle(),
+ new Symfony\Framework\WebBundle\Bundle(),
+ new Symfony\Framework\ZendBundle\Bundle(),
+ new Symfony\Framework\SwiftmailerBundle\Bundle(),
+ new Symfony\Framework\DoctrineBundle\Bundle(),
+ new Application\HelloBundle\Bundle(),
+ );
+ }
+
+ public function registerBundleDirs()
+ {
+ return array(
+ 'Application' => __DIR__.'/../src/Application',
+ 'Bundle' => __DIR__.'/../src/Bundle',
+ 'Symfony\\Framework' => __DIR__.'/../src/vendor/symfony/src/Symfony/Framework',
+ );
+ }
+
+ public function registerContainerConfiguration()
+ {
+ $loader = new ContainerLoader($this->getBundleDirs());
+
+ return $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
+ }
+
+ public function registerRoutes()
+ {
+ $loader = new RoutingLoader($this->getBundleDirs());
+
+ return $loader->load(__DIR__.'/config/routing.yml');
+ }
+}
0  hello/cache/.symfony
No changes.
3  hello/config/config.yml
@@ -0,0 +1,3 @@
+kernel.config: ~
+web.web: ~
+web.templating: ~
10 hello/config/config_dev.yml
@@ -0,0 +1,10 @@
+imports:
+ - { resource: config.yml }
+
+web.debug:
+ exception: %kernel.debug%
+ toolbar: %kernel.debug%
+
+zend.logger:
+ priority: info
+ path: %kernel.root_dir%/logs/%kernel.environment%.log
2  hello/config/config_prod.yml
@@ -0,0 +1,2 @@
+imports:
+ - { resource: config.yml }
6 hello/config/routing.yml
@@ -0,0 +1,6 @@
+homepage:
+ pattern: /
+ defaults: { _bundle: WebBundle, _controller: Default, _action: index }
+
+hello:
+ resource: HelloBundle/Resources/config/routing.yml
11 hello/console
@@ -0,0 +1,11 @@
+#!/usr/bin/env php
+<?php
+
+require_once __DIR__.'/HelloKernel.php';
+
+use Symfony\Framework\WebBundle\Console\Application;
+
+$kernel = new HelloKernel('dev', true);
+
+$application = new Application($kernel);
+$application->run();
0  hello/logs/.symfony
No changes.
1  src/.htaccess
@@ -0,0 +1 @@
+deny from all
9 src/Application/HelloBundle/Bundle.php
@@ -0,0 +1,9 @@
+<?php
+
+namespace Application\HelloBundle;
+
+use Symfony\Foundation\Bundle\Bundle as BaseBundle;
+
+class Bundle extends BaseBundle
+{
+}
13 src/Application/HelloBundle/Controller/HelloController.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Application\HelloBundle\Controller;
+
+use Symfony\Framework\WebBundle\Controller;
+
+class HelloController extends Controller
+{
+ public function indexAction($name)
+ {
+ return $this->render('HelloBundle:Hello:index', array('name' => $name));
+ }
+}
3  src/Application/HelloBundle/Resources/config/routing.yml
@@ -0,0 +1,3 @@
+hello:
+ pattern: /hello/:name
+ defaults: { _bundle: HelloBundle, _controller: Hello, _action: index }
3  src/Application/HelloBundle/Resources/views/Hello/index.php
@@ -0,0 +1,3 @@
+<?php $view->extend('HelloBundle::layout') ?>
+
+Hello <?php echo $name ?>!
9 src/Application/HelloBundle/Resources/views/layout.php
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ </head>
+ <body>
+ <?php $view->slots->output('_content') ?>
+ </body>
+</html>
0  src/Bundle/.symfony
No changes.
21 src/autoload.php
@@ -0,0 +1,21 @@
+<?php
+
+require_once __DIR__.'/vendor/symfony/src/Symfony/Foundation/UniversalClassLoader.php';
+
+use Symfony\Foundation\UniversalClassLoader;
+
+$loader = new UniversalClassLoader();
+$loader->registerNamespaces(array(
+ 'Symfony' => __DIR__.'/vendor/symfony/src',
+ 'Application' => __DIR__,
+ 'Bundle' => __DIR__,
+ 'Doctrine' => __DIR__.'/vendor/doctrine/lib',
+));
+$loader->registerPrefixes(array(
+ 'Swift_' => __DIR__.'/vendor/swiftmailer/lib/classes',
+ 'Zend_' => __DIR__.'/vendor/zend/library',
+));
+$loader->register();
+
+// for Zend Framework & SwiftMailer
+set_include_path(__DIR__.'/vendor/zend/library'.PATH_SEPARATOR.__DIR__.'/vendor/swiftmailer/lib'.PATH_SEPARATOR.get_include_path());
1  src/vendor/doctrine/CHANGELOG
@@ -0,0 +1 @@
+xxxx
39 src/vendor/doctrine/COPYRIGHT
@@ -0,0 +1,39 @@
+Copyrights
+----------
+
+Doctrine
+--------
+
+Doctrine is a Object Relational Mapper built from scratch with PHP5. It contains a few ports of other popular PHP classes/libraries.
+
+Url: http://www.doctrine-project.org
+Copyright: 2005-2009 Konsta Vesterinen
+License: LGPL - see LICENSE file
+
+symfony
+-------
+
+Doctrine contains ports of a few symfony classes/libraries
+
+Url: http://www.symfony-project.org
+Copyright: Fabien Potencier
+License: MIT - see LICENSE file
+
+Zend Framework
+--------------
+
+Doctrine contains ports of a few Zend components and has borrowed concepts and ideas from the Zend Framework project.
+
+Url: http://framework.zend.com
+Copyright: Copyright © 2006-2009 by Zend Technologies, All rights reserved.
+License: New BSD License
+
+eZ Components
+------------
+
+Doctrine SchemaTool, Platforms and SchemaManagers borrow ideas and concepts
+from ezcDatabaseSchema.
+
+Url: http://www.ezcomponents.org
+License: New BSD License
+Copyright: Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
504 src/vendor/doctrine/LICENSE
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
88 src/vendor/doctrine/UPGRADE_TO_2_0
@@ -0,0 +1,88 @@
+> **NOTE**
+> This document does not describe how to upgrade from Doctrine 1.x to Doctrine 2 as this is a more
+> complicated process.
+
+# Upgrade from 2.0-ALPHA4 to 2.0 ...
+
+## Default Property for Field Mappings removed
+
+The "default" option for database column defaults has been removed. If desired database column defaults can
+be implemented by using the @columnDefinition annotation (or the approriate XML and YAML equivalents).
+
+Additionally keep in mind that Doctrine's focus in on objects and you can specifiy default values for an Entitiy's
+mapped fields inside PHP easily. Upon persist() invocation these values are saved as if they were default values.
+
+# Upgrade from 2.0-ALPHA3 to 2.0-ALPHA4
+
+## CLI Controller changes
+
+CLI main object changed its name and namespace. Renamed from Doctrine\ORM\Tools\Cli to Doctrine\Common\Cli\CliController.
+Doctrine\Common\Cli\CliController now only deals with namespaces. Ready to go, Core, Dbal and Orm are available and you can subscribe new tasks by retrieving the namespace and including new task. Example:
+
+ [php]
+ $cli->getNamespace('Core')->addTask('my-example', '\MyProject\Tools\Cli\Tasks\MyExampleTask');
+
+
+## CLI Tasks documentation
+
+Tasks have implemented a new way to build documentation. Although it is still possible to define the help manually by extending the basicHelp and extendedHelp, they are now optional.
+With new required method AbstractTask::buildDocumentation, its implementation defines the TaskDocumentation instance (accessible through AbstractTask::getDocumentation()), basicHelp and extendedHelp are now not necessary to be implemented.
+
+## Changes in Method Signatures
+
+ * A bunch of Methods on both Doctrine\DBAL\Platforms\AbstractPlatform and Doctrine\DBAL\Schema\AbstractSchemaManager
+ have changed quite significantly by adopting the new Schema instance objects.
+
+## Renamed Methods
+
+ * Doctrine\ORM\AbstractQuery::setExpireResultCache() -> expireResultCache()
+ * Doctrine\ORM\Query::setExpireQueryCache() -> expireQueryCache()
+
+## SchemaTool Changes
+
+ * "doctrine schema-tool --drop" now always drops the complete database instead of
+ only those tables defined by the current database model. The previous method had
+ problems when foreign keys of orphaned tables pointed to tables that were schedulded
+ for deletion.
+ * Use "doctrine schema-tool --update" to get a save incremental update for your
+ database schema without deleting any unused tables, sequences or foreign keys.
+ * Use "doctrine schema-tool --complete-update" to do a full incremental update of
+ your schema.
+
+
+# Upgrade from 2.0-ALPHA2 to 2.0-ALPHA3
+
+This section details the changes made to Doctrine 2.0-ALPHA3 to make it easier for you
+to upgrade your projects to use this version.
+
+## CLI Changes
+
+The $args variable used in the cli-config.php for configuring the Doctrine CLI has been renamed to $globalArguments.
+
+## Proxy class changes
+
+You are now required to make supply some minimalist configuration with regards to proxy objects. That involves 2 new configuration options. First, the directory where generated proxy classes should be placed needs to be specified. Secondly, you need to configure the namespace used for proxy classes. The following snippet shows an example:
+
+ [php]
+ // step 1: configure directory for proxy classes
+ // $config instanceof Doctrine\ORM\Configuration
+ $config->setProxyDir('/path/to/myproject/lib/MyProject/Generated/Proxies');
+ $config->setProxyNamespace('MyProject\Generated\Proxies');
+
+Note that proxy classes behave exactly like any other classes when it comes to class loading. Therefore you need to make sure the proxy classes can be loaded by some class loader. If you place the generated proxy classes in a namespace and directory under your projects class files, like in the example above, it would be sufficient to register the MyProject namespace on a class loader. Since the proxy classes are contained in that namespace and adhere to the standards for class loading, no additional work is required.
+Generating the proxy classes into a namespace within your class library is the recommended setup.
+
+Entities with initialized proxy objects can now be serialized and unserialized properly from within the same application.
+
+For more details refer to the Configuration section of the manual.
+
+## Removed allowPartialObjects configuration option
+
+The allowPartialObjects configuration option together with the `Configuration#getAllowPartialObjects` and `Configuration#setAllowPartialObjects` methods have been removed.
+The new behavior is as if the option were set to FALSE all the time, basically disallowing partial objects globally. However, you can still use the `Query::HINT_FORCE_PARTIAL_LOAD` query hint to force a query to return partial objects for optimization purposes.
+
+## Renamed Methods
+
+* Doctrine\ORM\Configuration#getCacheDir() to getProxyDir()
+* Doctrine\ORM\Configuration#setCacheDir($dir) to setProxyDir($dir)
+
4 src/vendor/doctrine/bin/doctrine
@@ -0,0 +1,4 @@
+#!/usr/bin/env php
+<?php
+
+include('doctrine.php');
29 src/vendor/doctrine/bin/doctrine.php
@@ -0,0 +1,29 @@
+<?php
+
+require_once 'Doctrine/Common/ClassLoader.php';
+
+$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
+$classLoader->register();
+
+$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
+$configuration = new \Doctrine\Common\Cli\Configuration();
+
+if (file_exists($configFile)) {
+ if ( ! is_readable($configFile)) {
+ trigger_error(
+ 'Configuration file [' . $configFile . '] does not have read permission.', E_ERROR
+ );
+ }
+
+ require $configFile;
+
+ foreach ($GLOBALS as $configCandidate) {
+ if ($configCandidate instanceof \Doctrine\Common\Cli\Configuration) {
+ $configuration = $configCandidate;
+ break;
+ }
+ }
+}
+
+$cli = new \Doctrine\Common\Cli\CliController($configuration);
+$cli->run($_SERVER['argv']);
13 src/vendor/doctrine/build.properties.dev
@@ -0,0 +1,13 @@
+version_name=2.0.0-ALPHA2
+version=2.0.0
+stability=alpha
+build.dir=build
+dist.dir=dist
+report.dir=reports
+log.archive.dir=logs
+svn.path=/usr/bin/svn
+test.phpunit_configuration_file=
+test.phpunit_generate_coverage=0
+test.pmd_reports=0
+test.pdepend_exec=
+test.phpmd_exec=
228 src/vendor/doctrine/build.xml
@@ -0,0 +1,228 @@
+<?xml version="1.0"?>
+
+<!--
+ Doctrine 2 build file.
+-->
+
+<project name="Doctrine2" default="build" basedir=".">
+ <taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
+ <taskdef classname="NativePhpunitTask" classpath="./tools/" name="nativephpunit" />
+
+ <property file="build.properties" />
+
+ <!--
+ Fileset for artifacts shared across all distributed packages.
+ -->
+ <fileset id="shared-artifacts" dir=".">
+ <include name="LICENSE"/>
+ <include name="COPYRIGHT"/>
+ <include name="CHANGELOG"/>
+ </fileset>
+
+ <!--
+ Fileset for command line scripts
+ -->
+ <fileset id="bin-scripts" dir="./bin">
+ <include name="doctrine"/>
+ <include name="doctrine.php"/>
+ </fileset>
+
+ <!--
+ Fileset for the sources of the Doctrine Common package.
+ -->
+ <fileset id="common-sources" dir="./lib">
+ <include name="Doctrine/Common/**"/>
+ </fileset>
+
+ <!--
+ Fileset for the sources of the Doctrine DBAL package.
+ -->
+ <fileset id="dbal-sources" dir="./lib">
+ <include name="Doctrine/DBAL/**"/>
+ </fileset>
+
+ <!--
+ Fileset for the sources of the Doctrine ORM package.
+ -->
+ <fileset id="orm-sources" dir="./lib">
+ <include name="Doctrine/ORM/**"/>
+ </fileset>
+
+ <!--
+ Fileset for the Doctrine ORM tools + sandbox.
+ -->
+ <fileset id="orm-tools" dir=".">
+ <include name="tools/sandbox/Entities"/>
+ <include name="tools/sandbox/xml"/>
+ <include name="tools/sandbox/yaml"/>
+ <include name="tools/sandbox/cli-config.php"/>
+ <include name="tools/sandbox/config.php"/>
+ <include name="tools/sandbox/doctrine"/>
+ <include name="tools/sandbox/doctrine.php"/>
+ <include name="tools/sandbox/index.php"/>
+ </fileset>
+
+ <target name="clean">
+ <available file="./build.properties" property="build_properties_exist" value="true"/>
+ <fail unless="build_properties_exist" message="The build.properties file is missing." />
+
+ <delete dir="${build.dir}" includeemptydirs="true" />
+ <delete dir="${dist.dir}" includeemptydirs="true" />
+ <delete dir="${report.dir}" includeemptydirs="true" />
+ </target>
+
+ <target name="prepare" depends="clean">
+ <echo msg="Creating build directory: ${build.dir}" />
+ <mkdir dir="${build.dir}" />
+ <echo msg="Creating distribution directory: ${dist.dir}" />
+ <mkdir dir="${dist.dir}" />
+ <echo msg="Creating report directory: ${report.dir}" />
+ <mkdir dir="${report.dir}" />
+ <mkdir dir="${build.dir}/logs"/>
+ <mkdir dir="${report.dir}/tests"/>
+ </target>
+
+ <target name="build-common">
+ <copy todir="${build.dir}/common">
+ <fileset refid="shared-artifacts"/>
+ </copy>
+ <copy todir="${build.dir}/common/DoctrineCommon-${version}">
+ <fileset refid="common-sources"/>
+ </copy>
+ </target>
+
+ <target name="build-dbal">
+ <copy todir="${build.dir}/dbal">
+ <fileset refid="shared-artifacts"/>
+ </copy>
+ <copy todir="${build.dir}/dbal/DoctrineDBAL-${version}">
+ <fileset refid="common-sources"/>
+ <fileset refid="dbal-sources"/>
+ </copy>
+ </target>
+
+ <!--
+ Builds all packages, preparing them for distribution.
+ -->
+ <target name="build-orm" depends="test, build-common, build-dbal">
+ <copy todir="${build.dir}/orm">
+ <fileset refid="shared-artifacts"/>
+ <fileset refid="orm-tools"/>
+ </copy>
+ <copy todir="${build.dir}/orm/DoctrineORM-${version}">
+ <fileset refid="common-sources"/>
+ <fileset refid="dbal-sources"/>
+ <fileset refid="orm-sources"/>
+ </copy>
+ <copy todir="${build.dir}/orm/DoctrineORM-${version}/bin">
+ <fileset refid="bin-scripts"/>
+ </copy>
+ </target>
+
+ <target name="build" depends="test, build-orm"/>
+
+ <!--
+ Runs the full test suite.
+ -->
+ <target name="test" depends="prepare">
+ <if><equals arg1="${test.phpunit_generate_coverage}" arg2="1" />
+ <then>
+ <property name="test.phpunit_coverage_file" value="${build.dir}/logs/clover.xml" />
+ </then>
+ <else>
+ <property name="test.phpunit_coverage_file" value="false" />
+ </else>
+ </if>
+
+ <nativephpunit
+ testfile="./tests/Doctrine/Tests/AllTests.php" junitlogfile="${build.dir}/logs/testsuites.xml"
+ testdirectory="./tests" coverageclover="${test.phpunit_coverage_file}" configuration="${test.phpunit_configuration_file}"
+ />
+ <phpunitreport infile="${build.dir}/logs/testsuites.xml" format="frames" todir="${report.dir}/tests" />
+
+ <nativephpunit testfile="./tests/Doctrine/Tests/ORM/Performance/AllTests.php" testdirectory="./tests" haltonfailure="false" haltonerror="false" />
+ <tstamp/>
+ <svnlastrevision svnpath="${svn.path}" workingcopy="." propertyname="svn.lastrevision"/>
+ <copy file="${build.dir}/logs/testsuites.xml" tofile="${log.archive.dir}/${svn.lastrevision}/log.xml" overwrite="true"/>
+
+ <if><equals arg1="${test.pmd_reports}" arg2="1" />
+ <then>
+ <exec command="${test.pdepend_exec} --jdepend-xml=${build.dir}/logs/jdepend.xml ./lib/Doctrine" />
+ <exec command="${test.phpmd_exec} ./lib/Doctrine xml codesize --reportfile ${build.dir}/logs/phpmd.xml" />
+
+ <copy file="${build.dir}/logs/jdepend.xml" tofile="${log.archive.dir}/${svn.lastrevision}/jdepend.xml" overwrite="true"/>
+ <copy file="${build.dir}/logs/phpmd.xml" tofile="${log.archive.dir}/${svn.lastrevision}/phpmd.xml" overwrite="true"/>
+ </then>
+ </if>
+ </target>
+
+ <!--
+ Builds distributable PEAR packages.
+ -->
+ <target name="build-packages" depends="build-orm">
+ <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/common/DoctrineCommon-${version}">
+ <name>DoctrineCommon</name>
+ <summary>Common Doctrine code</summary>
+ <channel>pear.phpdoctrine.org</channel>
+ <description>The Doctrine Common package contains shared code between the other packages.</description>
+ <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
+ <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
+ <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
+ <license>LGPL</license>
+ <version release="${version}" api="${version}" />
+ <stability release="${stability}" api="${stability}" />
+ <notes>-</notes>
+ <dependencies>
+ <php minimum_version="5.3.0" />
+ <pear minimum_version="1.6.0" recommended_version="1.6.1" />
+ </dependencies>
+ </d51pearpkg2>
+ <tar destfile="${dist.dir}/DoctrineCommon-${version_name}.tgz" basedir="${build.dir}/common" compression="gzip" />
+
+ <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/dbal/DoctrineDBAL-${version}">
+ <name>DoctrineDBAL</name>
+ <summary>Doctrine Database Abstraction Layer</summary>
+ <channel>pear.phpdoctrine.org</channel>
+ <description>The Doctrine DBAL package is the database abstraction layer used to power the ORM package.</description>
+ <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
+ <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
+ <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
+ <license>LGPL</license>
+ <version release="${version}" api="${version}" />
+ <stability release="${stability}" api="${stability}" />
+ <notes>-</notes>
+ <dependencies>
+ <php minimum_version="5.3.0" />
+ <pear minimum_version="1.6.0" recommended_version="1.6.1" />
+ </dependencies>
+ </d51pearpkg2>
+ <tar destfile="${dist.dir}/DoctrineDBAL-${version_name}.tgz" basedir="${build.dir}/dbal" compression="gzip" />
+
+ <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/orm/DoctrineORM-${version}">
+ <name>DoctrineORM</name>
+ <summary>Doctrine Object Relationl Mapper</summary>
+ <channel>pear.phpdoctrine.org</channel>
+ <description>The Doctrine ORM package is the primary package containing the object relational mapper.</description>
+ <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
+ <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
+ <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
+ <license>LGPL</license>
+ <version release="${version}" api="${version}" />
+ <stability release="${stability}" api="${stability}" />
+ <notes>-</notes>
+ <dependencies>
+ <php minimum_version="5.3.0" />
+ <pear minimum_version="1.6.0" recommended_version="1.6.1" />
+ </dependencies>
+ <dirroles key="bin">script</dirroles>
+ <replacement path="bin/doctrine" type="pear-config" from="@php_bin@" to="php_bin" />
+ <replacement path="bin/doctrine.php" type="pear-config" from="@php_bin@" to="php_bin" />
+ <replacement path="bin/doctrine.php" type="pear-config" from="@bin_dir@" to="bin_dir" />
+ <release>
+ <install as="doctrine" name="bin/doctrine" />
+ <install as="doctrine.php" name="bin/doctrine.php" />
+ </release>
+ </d51pearpkg2>
+ <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />
+ </target>
+</project>
264 src/vendor/doctrine/doctrine-mapping.xsd
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
+ xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
+ elementFormDefault="qualified">
+
+ <xs:annotation>
+ <xs:documentation><![CDATA[
+ This is the XML Schema for the object/relational
+ mapping file used by the Doctrine ORM.
+ ]]></xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="doctrine-mapping">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="mapped-superclass" type="orm:mapped-superclass" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element name="entity" type="orm:entity" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="emptyType"/>
+
+ <xs:complexType name="cascade-type">
+ <xs:sequence>
+ <xs:element name="cascade-all" type="orm:emptyType" minOccurs="0"/>
+ <xs:element name="cascade-persist" type="orm:emptyType" minOccurs="0"/>
+ <xs:element name="cascade-merge" type="orm:emptyType" minOccurs="0"/>
+ <xs:element name="cascade-remove" type="orm:emptyType" minOccurs="0"/>
+ <xs:element name="cascade-refresh" type="orm:emptyType" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:simpleType name="lifecycle-callback-type">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="prePersist"/>
+ <xs:enumeration value="postPersist"/>
+ <xs:enumeration value="preUpdate"/>
+ <xs:enumeration value="postUpdate"/>
+ <xs:enumeration value="preRemove"/>
+ <xs:enumeration value="postRemove"/>
+ <xs:enumeration value="postLoad"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:complexType name="lifecycle-callback">
+ <xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
+ <xs:attribute name="method" type="xs:NMTOKEN" use="required" />
+ </xs:complexType>
+
+ <xs:complexType name="lifecycle-callbacks">
+ <xs:sequence>
+ <xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="entity">
+ <xs:sequence>
+ <xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
+ <xs:element name="unique-constraints" type="orm:unique-constraints" minOccurs="0"/>
+ <xs:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
+ <xs:element name="discriminator-map" type="orm:discriminator-map" minOccurs="0"/>
+ <xs:element name="lifecycle-callbacks" type="orm:lifecycle-callbacks" minOccurs="0" maxOccurs="1" />
+ <xs:element name="id" type="orm:id" />
+ <xs:element name="field" type="orm:field" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="one-to-one" type="orm:one-to-one" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="one-to-many" type="orm:one-to-many" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element name="many-to-one" type="orm:many-to-one" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required" />
+ <xs:attribute name="table" type="xs:NMTOKEN" />
+ <xs:attribute name="schema" type="xs:NMTOKEN" />
+ <xs:attribute name="repository-class" type="xs:NMTOKEN"/>
+ <xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
+ </xs:complexType>
+
+ <xs:complexType name="mapped-superclass" >
+ <xs:complexContent>
+ <xs:extension base="orm:entity"/>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="inheritance-type">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="SINGLE_TABLE"/>
+ <xs:enumeration value="JOINED"/>
+ <xs:enumeration value="TABLE_PER_CLASS"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="generator-strategy">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="TABLE"/>
+ <xs:enumeration value="SEQUENCE"/>
+ <xs:enumeration value="IDENTITY"/>
+ <xs:enumeration value="AUTO"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="fk-action">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="CASCADE"/>
+ <xs:enumeration value="RESTRICT"/>
+ <xs:enumeration value="SET_NULL"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="fetch-type">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="EAGER"/>
+ <xs:enumeration value="LAZY"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:complexType name="field">
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="type" type="xs:NMTOKEN" default="string" />
+ <xs:attribute name="column" type="xs:NMTOKEN" />
+ <xs:attribute name="length" type="xs:NMTOKEN" />
+ <xs:attribute name="unique" type="xs:boolean" default="false" />
+ <xs:attribute name="nullable" type="xs:boolean" default="false" />
+ <xs:attribute name="version" type="xs:boolean" />
+ <xs:attribute name="column-definition" type="xs:string" />
+ </xs:complexType>
+
+ <xs:complexType name="discriminator-column">
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="field-name" type="xs:NMTOKEN" />
+ <xs:attribute name="length" type="xs:NMTOKEN" />
+ </xs:complexType>
+
+ <xs:complexType name="unique-constraint">
+ <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
+ <xs:attribute name="columns" type="xs:NMTOKENS" use="required"/>
+ </xs:complexType>
+
+ <xs:complexType name="unique-constraints">
+ <xs:sequence>
+ <xs:element name="unique-constraint" type="orm:unique-constraint" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="index">
+ <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
+ <xs:attribute name="columns" type="xs:NMTOKENS" use="required"/>
+ </xs:complexType>
+
+ <xs:complexType name="indexes">
+ <xs:sequence>
+ <xs:element name="index" type="orm:index" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="discriminator-mapping">
+ <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
+ <xs:attribute name="class" type="xs:NMTOKEN" use="required"/>
+ </xs:complexType>
+
+ <xs:complexType name="discriminator-map">
+ <xs:sequence>
+ <xs:element name="discriminator-mapping" type="orm:discriminator-mapping" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="generator">
+ <xs:attribute name="strategy" type="orm:generator-strategy" use="optional" default="AUTO" />
+ </xs:complexType>
+
+ <xs:complexType name="id">
+ <xs:sequence>
+ <xs:element name="generator" type="orm:generator" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="column" type="xs:NMTOKEN" />
+ </xs:complexType>
+
+ <xs:complexType name="inverse-join-columns">
+ <xs:sequence>
+ <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="join-column">
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="referenced-column-name" type="xs:NMTOKEN" use="optional" default="id" />
+ <xs:attribute name="unique" type="xs:boolean" default="false" />
+ <xs:attribute name="nullable" type="xs:boolean" default="true" />
+ <xs:attribute name="on-delete" type="orm:fk-action" />
+ <xs:attribute name="on-update" type="orm:fk-action" />
+ <xs:attribute name="column-definition" type="xs:string" />
+ </xs:complexType>
+
+ <xs:complexType name="join-columns">
+ <xs:sequence>
+ <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="join-table">
+ <xs:sequence>
+ <xs:element name="join-columns" type="orm:join-columns" />
+ <xs:element name="inverse-join-columns" type="orm:join-columns" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="schema" type="xs:NMTOKEN" />
+ </xs:complexType>
+
+ <xs:complexType name="many-to-many">
+ <xs:sequence>
+ <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
+ <xs:element name="join-table" type="orm:join-table" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
+ <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
+ </xs:complexType>
+
+ <xs:complexType name="one-to-many">
+ <xs:sequence>
+ <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
+ <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
+ <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
+ </xs:complexType>
+
+ <xs:complexType name="many-to-one">
+ <xs:sequence>
+ <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element name="join-column" type="orm:join-column"/>
+ <xs:element name="join-columns" type="orm:join-columns"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
+ <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
+ </xs:complexType>
+
+ <xs:complexType name="one-to-one">
+ <xs:sequence>
+ <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element name="join-column" type="orm:join-column"/>
+ <xs:element name="join-columns" type="orm:join-columns"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
+ <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
+ <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
+ <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
+ </xs:complexType>
+
+</xs:schema>
92 src/vendor/doctrine/jpgraph.php
@@ -0,0 +1,92 @@
+<?php
+
+// If you dont have jpgraph, you need to download it from:
+// http://www.aditus.nu/jpgraph/jpdownload.php
+
+$jpgraphPath = '../lib/jpgraph-3.0.3/src'; // put the path to your jpgraph install here
+
+// ------------------------------------------
+
+require_once "$jpgraphPath/jpgraph.php";
+require_once "$jpgraphPath/jpgraph_line.php";
+
+$logsPath = 'logs/';
+
+$revisions = array();
+$graphs = array();
+
+if (isset($_POST['test'])) {
+ list($testsuite, $testcase) = explode('#', $_POST['test']);
+}
+
+$items = scandir($logsPath);
+foreach ($items as $item) {
+ if ($item[0] != '.') {
+ $revisions[] = $item;
+ }
+}
+
+foreach ($revisions as $rev) {
+ $xml = simplexml_load_file($logsPath . $rev . '/log.xml');
+ foreach ($xml->testsuite as $suite) {
+ foreach ($suite->testcase as $test) {
+ if (stripos((string)$suite['name'], 'performance') !== false || stripos((string)$test['name'], 'performance') !== false) {
+ $name = (string)$suite['name'] . '#' . (string)$test['name'];
+ $graphs[$name][] = (double)$test['time'];
+ }
+ }
+ }
+}
+
+if (isset($testsuite) && isset($testcase)) {
+ $graphName = $testsuite . '#' . $testcase;
+ $graphData = $graphs[$graphName];
+
+ // Create the graph. These two calls are always required
+ $graph = new Graph(650,250);
+
+ //$graph->SetScale('intint');
+ $graph->SetScale('textlin');
+ $graph->yaxis->scale->SetAutoMin(0);
+
+ $graph->title->Set($testsuite);
+ $graph->subtitle->Set($testcase);
+
+ $graph->xaxis->title->Set('revision');
+ $graph->yaxis->title->Set('seconds');
+ $graph->SetMargin(100, 100, 50, 50);
+
+ // Create the linear plot
+ $lineplot = new LinePlot($graphData);
+ $lineplot->SetColor('blue');
+
+ $graph->xaxis->SetTickLabels($revisions);
+
+ // Add the plot to the graph
+ $graph->Add($lineplot);
+
+ // Display the graph
+ $graph->Stroke();
+} else {
+
+ echo '<html><head></head><body>';
+ echo 'Pick a test and click "show":<br/>';
+ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
+
+ echo '<select name="test">';
+
+ foreach ($graphs as $name => $data) {
+ echo '<option value="' . $name . '">' . $name . '</option>';
+ }
+
+ echo '</select>';
+
+ echo '<button type="submit">Show</button>';
+
+ echo '</form>';
+ echo '</body></html>';
+
+}
+
+
+
65 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Annotation.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * $Id$
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the LGPL. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
+namespace Doctrine\Common\Annotations;
+
+/**
+ * Annotations class
+ *
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link www.doctrine-project.org
+ * @since 2.0
+ * @version $Revision: 3938 $
+ * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
+ * @author Jonathan Wage <jonwage@gmail.com>
+ * @author Roman Borschel <roman@code-factory.org>
+ */
+class Annotation
+{
+ /**
+ * Value property. Common among all derived classes.
+ *
+ * @var string
+ */
+ public $value;
+
+ /**
+ * Constructor
+ *
+ * @param array $data Key-value for properties to be defined in this class
+ */
+ public final function __construct(array $data)
+ {
+ foreach ($data as $key => $value) {
+ $this->$key = $value;
+ }
+ }
+
+ public function __get($name)
+ {
+ throw new \BadMethodCallException("Unknown annotation property '$name' on annotation '".get_class($this)."'.");
+ }
+
+ public function __set($name, $value)
+ {
+ throw new \BadMethodCallException("Unknown annotation property '$name' on annotation '".get_class($this)."'.");
+ }
+}
47 src/vendor/doctrine/lib/Doctrine/Common/Annotations/AnnotationException.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * $Id$
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the LGPL. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
+namespace Doctrine\Common\Annotations;
+
+/**
+ * Description of AnnotationException
+ *
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link www.doctrine-project.org
+ * @since 2.0
+ * @version $Revision: 3938 $
+ * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
+ * @author Jonathan Wage <jonwage@gmail.com>
+ * @author Roman Borschel <roman@code-factory.org>
+ */
+class AnnotationException extends \Doctrine\Common\DoctrineException
+{
+ public static function syntaxError($message)
+ {
+ return new self('[Syntax Error] ' . $message);
+ }
+
+
+ public static function semanticalError($message)
+ {
+ return new self('[Semantical Error] ' . $message);
+ }
+}
192 src/vendor/doctrine/lib/Doctrine/Common/Annotations/AnnotationReader.php
@@ -0,0 +1,192 @@
+<?php
+/*
+ * $Id$
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the LGPL. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
+namespace Doctrine\Common\Annotations;
+
+use \ReflectionClass,
+ \ReflectionMethod,
+ \ReflectionProperty,
+ Doctrine\Common\Cache\Cache;
+
+/**
+ * A reader for docblock annotations.
+ *
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link www.doctrine-project.org
+ * @since 2.0
+ * @version $Revision: 3938 $
+ * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
+ * @author Jonathan Wage <jonwage@gmail.com>
+ * @author Roman Borschel <roman@code-factory.org>
+ */
+class AnnotationReader
+{
+ /**
+ * Cache salt
+ *
+ * @var string
+ * @static
+ */
+ private static $CACHE_SALT = "@<Annot>";
+
+ /**
+ * Annotations Parser
+ *
+ * @var Doctrine\Common\Annotations\Parser
+ */
+ private $_parser;
+
+ /**
+ * Cache machanism to store processed Annotations
+ *
+ * @var Doctrine\Common\Cache\Cache
+ */
+ private $_cache;
+
+ /**
+ * Constructor. Initializes a new AnnotationReader that uses the given
+ * Cache provider.
+ *
+ * @param Cache $cache The cache provider to use.
+ */
+ public function __construct(Cache $cache)
+ {
+ $this->_parser = new Parser;
+ $this->_cache = $cache;
+ }
+
+ /**
+ * Sets the default namespace that the AnnotationReader should assume for annotations
+ * with not fully qualified names.
+ *
+ * @param string $defaultNamespace
+ */
+ public function setDefaultAnnotationNamespace($defaultNamespace)
+ {
+ $this->_parser->setDefaultAnnotationNamespace($defaultNamespace);
+ }
+
+ /**
+ * Gets the annotations applied to a class.
+ *
+ * @param string|ReflectionClass $class The name or ReflectionClass of the class from which
+ * the class annotations should be read.
+ * @return array An array of Annotations.
+ */
+ public function getClassAnnotations(ReflectionClass $class)
+ {
+ $cacheKey = $class->getName() . self::$CACHE_SALT;
+
+ if ($this->_cache->contains($cacheKey)) {
+ return $this->_cache->fetch($cacheKey);
+ }
+
+ $annotations = $this->_parser->parse($class->getDocComment(), "class ".$class->getName());
+ $this->_cache->save($cacheKey, $annotations, null);
+
+ return $annotations;
+ }
+
+ /**
+ * Gets a class annotation.
+ *
+ * @param $class
+ * @param string $annotation The name of the annotation.
+ * @return The Annotation or NULL, if the requested annotation does not exist.
+ */
+ public function getClassAnnotation(ReflectionClass $class, $annotation)
+ {
+ $annotations = $this->getClassAnnotations($class);
+ return isset($annotations[$annotation]) ? $annotations[$annotation] : null;
+ }
+
+ /**
+ * Gets the annotations applied to a property.
+ *
+ * @param string|ReflectionClass $class The name or ReflectionClass of the class that owns the property.
+ * @param string|ReflectionProperty $property The name or ReflectionProperty of the property
+ * from which the annotations should be read.
+ * @return array An array of Annotations.
+ */
+ public function getPropertyAnnotations(ReflectionProperty $property)
+ {
+ $cacheKey = $property->getDeclaringClass()->getName() . '$' . $property->getName() . self::$CACHE_SALT;
+
+ if ($this->_cache->contains($cacheKey)) {
+ return $this->_cache->fetch($cacheKey);
+ }
+
+ $context = "property ".$property->getDeclaringClass()->getName()."::\$".$property->getName();
+ $annotations = $this->_parser->parse($property->getDocComment(), $context);
+ $this->_cache->save($cacheKey, $annotations, null);
+
+ return $annotations;
+ }
+
+ /**
+ * Gets a property annotation.
+ *
+ * @param ReflectionProperty $property
+ * @param string $annotation The name of the annotation.
+ * @return The Annotation or NULL, if the requested annotation does not exist.
+ */
+ public function getPropertyAnnotation(ReflectionProperty $property, $annotation)
+ {
+ $annotations = $this->getPropertyAnnotations($property);
+ return isset($annotations[$annotation]) ? $annotations[$annotation] : null;
+ }
+
+ /**
+ * Gets the annotations applied to a method.
+ *
+ * @param string|ReflectionClass $class The name or ReflectionClass of the class that owns the method.
+ * @param string|ReflectionMethod $property The name or ReflectionMethod of the method from which
+ * the annotations should be read.
+ * @return array An array of Annotations.
+ */
+ public function getMethodAnnotations(ReflectionMethod $method)
+ {
+ $cacheKey = $method->getDeclaringClass()->getName() . '#' . $method->getName() . self::$CACHE_SALT;
+
+ if ($this->_cache->contains($cacheKey)) {
+ return $this->_cache->fetch($cacheKey);
+ }
+
+ $context = "method ".$method->getDeclaringClass()->getName()."::".$method->getName()."()";
+ $annotations = $this->_parser->parse($method->getDocComment(), $context);
+ $this->_cache->save($cacheKey, $annotations, null);
+
+ return $annotations;
+ }
+
+ /**
+ * Gets a method annotation.
+ *
+ * @param ReflectionMethod $method
+ * @param string $annotation The name of the annotation.
+ * @return The Annotation or NULL, if the requested annotation does not exist.
+ */
+ public function getMethodAnnotation(ReflectionMethod $method, $annotation)
+ {
+ $annotations = $this->getMethodAnnotations($method);
+ return isset($annotations[$annotation]) ? $annotations[$annotation] : null;
+ }
+}
136 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Lexer.php
@@ -0,0 +1,136 @@
+<?php
+/*
+ * $Id$
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the LGPL. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
+namespace Doctrine\Common\Annotations;
+
+/**
+ * Simple lexer for docblock annotations.
+ *
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link www.doctrine-project.org
+ * @since 2.0
+ * @version $Revision: 3938 $
+ * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
+ * @author Jonathan Wage <jonwage@gmail.com>
+ * @author Roman Borschel <roman@code-factory.org>
+ */
+class Lexer extends \Doctrine\Common\Lexer
+{
+ const T_NONE = 1;
+ const T_IDENTIFIER = 2;
+ const T_INTEGER = 3;
+ const T_STRING = 4;
+ const T_FLOAT = 5;
+
+ const T_AT = 101;
+ const T_CLOSE_CURLY_BRACES = 102;
+ const T_CLOSE_PARENTHESIS = 103;
+ const T_COMMA = 104;
+ const T_EQUALS = 105;
+ const T_FALSE = 106;
+ const T_NAMESPACE_SEPARATOR = 107;
+ const T_OPEN_CURLY_BRACES = 108;
+ const T_OPEN_PARENTHESIS = 109;
+ const T_TRUE = 110;
+
+ /**
+ * @inheritdoc
+ */
+ protected function getCatchablePatterns()
+ {
+ return array(
+ '[a-z_][a-z0-9_\\\]*',
+ '(?:[0-9]+(?:[\.][0-9]+)*)(?:e[+-]?[0-9]+)?',
+ '"(?:[^"]|"")*"'
+ );
+ }
+
+ /**
+ * @inheritdoc
+ */
+ protected function getNonCatchablePatterns()
+ {
+ return array('\s+', '\*+', '(.)');
+ }
+
+ /**
+ * @inheritdoc
+ */
+ protected function _getType(&$value)
+ {
+ $type = self::T_NONE;
+ $newVal = $this->_getNumeric($value);
+
+ // Checking numeric value
+ if ($newVal !== false){
+ $value = $newVal;
+
+ return (strpos($value, '.') !== false || stripos($value, 'e') !== false)
+ ? self::T_FLOAT : self::T_INTEGER;
+ }
+
+ if ($value[0] === '"') {
+ $value = str_replace('""', '"', substr($value, 1, strlen($value) - 2));
+
+ return self::T_STRING;
+ } else {
+ switch (strtolower($value)) {
+ case '@': return self::T_AT;
+ case ',': return self::T_COMMA;
+ case '(': return self::T_OPEN_PARENTHESIS;
+ case ')': return self::T_CLOSE_PARENTHESIS;
+ case '{': return self::T_OPEN_CURLY_BRACES;
+ case '}': return self::T_CLOSE_CURLY_BRACES;
+ case '=': return self::T_EQUALS;
+ case '\\': return self::T_NAMESPACE_SEPARATOR;
+ case 'true': return self::T_TRUE;
+ case 'false': return self::T_FALSE;
+ default:
+ if (ctype_alpha($value[0]) || $value[0] === '_') {
+ return self::T_IDENTIFIER;
+ }
+
+ break;
+ }
+ }
+
+ return $type;
+ }
+
+ /**
+ * Checks if a value is numeric or not
+ *
+ * @param mixed $value Value to be inspected
+ * @return boolean|integer|float Processed value
+ */
+ private function _getNumeric($value)
+ {
+ if ( ! is_scalar($value)) {
+ return false;
+ }
+ // Checking for valid numeric numbers: 1.234, -1.234e-2
+ if (is_numeric($value)) {
+ return $value;
+ }
+
+ return false;
+ }
+}
446 src/vendor/doctrine/lib/Doctrine/Common/Annotations/Parser.php
@@ -0,0 +1,446 @@
+<?php
+/*
+ * $Id$
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the LGPL. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+