Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade to symfony 2.0.16 and other bundles

  • Loading branch information...
commit c84eb662313bc0a8534c1464091c9f68e7cf88f5 1 parent d8811f7
littlepinguseixas authored
View
14 .gitignore
@@ -1,8 +1,6 @@
-*.komodoproject
-app/config/parameters.ini
-vendor/*
-app/cache/*
-app/logs/*
-web/bundles/*
-app/DoctrineMigrations
-*~
+/web/bundles/
+/app/bootstrap*
+/app/cache/*
+/app/logs/*
+/vendor/
+/app/config/parameters.ini
View
3  app/AppKernel.php
@@ -17,8 +17,7 @@ public function registerBundles()
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
- new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
- new JMS\SerializerBundle\JMSSerializerBundle(),
+ new JMS\SerializerBundle\JMSSerializerBundle($this),
new FOS\RestBundle\FOSRestBundle(),
new Connect\ContactBundle\ConnectContactBundle(),
);
View
2  app/autoload.php
@@ -15,7 +15,9 @@
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
+ 'FOS\\Rest' => __DIR__.'/../vendor/fos',
'FOS' => __DIR__.'/../vendor/bundles',
+
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
View
110 app/bootstrap.php.cache
@@ -13,7 +13,7 @@ namespace Symfony\Component\DependencyInjection
interface ContainerAwareInterface
{
- function setContainer(ContainerInterface $container = null);
+ public function setContainer(ContainerInterface $container = null);
}
}
@@ -33,37 +33,37 @@ interface ContainerInterface
const SCOPE_PROTOTYPE = 'prototype';
- function set($id, $service, $scope = self::SCOPE_CONTAINER);
+ public function set($id, $service, $scope = self::SCOPE_CONTAINER);
- function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
+ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
- function has($id);
+ public function has($id);
- function getParameter($name);
+ public function getParameter($name);
- function hasParameter($name);
+ public function hasParameter($name);
- function setParameter($name, $value);
+ public function setParameter($name, $value);
- function enterScope($name);
+ public function enterScope($name);
- function leaveScope($name);
+ public function leaveScope($name);
- function addScope(ScopeInterface $scope);
+ public function addScope(ScopeInterface $scope);
- function hasScope($name);
+ public function hasScope($name);
- function isScopeActive($name);
+ public function isScopeActive($name);
}
}
@@ -209,7 +209,7 @@ class Container implements ContainerInterface
$ids = array();
$r = new \ReflectionClass($this);
foreach ($r->getMethods() as $method) {
- if (preg_match('/^get(.+)Service$/', $method->getName(), $match)) {
+ if (preg_match('/^get(.+)Service$/', $method->name, $match)) {
$ids[] = self::underscore($match[1]);
}
}
@@ -315,13 +315,13 @@ class Container implements ContainerInterface
}
- static public function camelize($id)
+ public static function camelize($id)
{
return preg_replace_callback('/(^|_|\.)+(.)/', function ($match) { return ('.' === $match[1] ? '_' : '').strtoupper($match[2]); }, $id);
}
- static public function underscore($id)
+ public static function underscore($id)
{
return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), strtr($id, '_', '.')));
}
@@ -344,7 +344,7 @@ interface HttpKernelInterface
const SUB_REQUEST = 2;
- function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);
+ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);
}
}
@@ -363,52 +363,52 @@ use Symfony\Component\Config\Loader\LoaderInterface;
interface KernelInterface extends HttpKernelInterface, \Serializable
{
- function registerBundles();
+ public function registerBundles();
- function registerContainerConfiguration(LoaderInterface $loader);
+ public function registerContainerConfiguration(LoaderInterface $loader);
- function boot();
+ public function boot();
- function shutdown();
+ public function shutdown();
- function getBundles();
+ public function getBundles();
- function isClassInActiveBundle($class);
+ public function isClassInActiveBundle($class);
- function getBundle($name, $first = true);
+ public function getBundle($name, $first = true);
- function locateResource($name, $dir = null, $first = true);
+ public function locateResource($name, $dir = null, $first = true);
- function getName();
+ public function getName();
- function getEnvironment();
+ public function getEnvironment();
- function isDebug();
+ public function isDebug();
- function getRootDir();
+ public function getRootDir();
- function getContainer();
+ public function getContainer();
- function getStartTime();
+ public function getStartTime();
- function getCacheDir();
+ public function getCacheDir();
- function getLogDir();
+ public function getLogDir();
}
}
@@ -433,7 +433,6 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Symfony\Component\HttpKernel\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass;
use Symfony\Component\HttpKernel\DependencyInjection\AddClassesToCachePass;
-use Symfony\Component\HttpKernel\DependencyInjection\Extension as DIExtension;
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
use Symfony\Component\HttpKernel\Debug\ExceptionHandler;
use Symfony\Component\Config\Loader\LoaderResolver;
@@ -456,7 +455,12 @@ abstract class Kernel implements KernelInterface
protected $startTime;
protected $classes;
- const VERSION = '2.0.3';
+ const VERSION = '2.0.17-DEV';
+ const VERSION_ID = '20017';
+ const MAJOR_VERSION = '2';
+ const MINOR_VERSION = '0';
+ const RELEASE_VERSION = '17';
+ const EXTRA_VERSION = 'DEV';
public function __construct($environment, $debug)
@@ -663,7 +667,7 @@ abstract class Kernel implements KernelInterface
{
if (null === $this->rootDir) {
$r = new \ReflectionObject($this);
- $this->rootDir = dirname($r->getFileName());
+ $this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
}
return $this->rootDir;
@@ -787,7 +791,7 @@ abstract class Kernel implements KernelInterface
$this->container = new $class();
$this->container->set('kernel', $this);
- if (!$fresh) {
+ if (!$fresh && $this->container->has('cache_warmer')) {
$this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));
}
}
@@ -821,7 +825,7 @@ abstract class Kernel implements KernelInterface
{
$parameters = array();
foreach ($_SERVER as $key => $value) {
- if ('SYMFONY__' === substr($key, 0, 9)) {
+ if (0 === strpos($key, 'SYMFONY__')) {
$parameters[strtolower(str_replace('__', '.', substr($key, 9)))] = $value;
}
}
@@ -835,7 +839,7 @@ abstract class Kernel implements KernelInterface
foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
if (!is_dir($dir)) {
if (false === @mkdir($dir, 0777, true)) {
- throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, dirname($dir)));
+ throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
}
} elseif (!is_writable($dir)) {
throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
@@ -898,7 +902,7 @@ abstract class Kernel implements KernelInterface
}
- static public function stripComments($source)
+ public static function stripComments($source)
{
if (!function_exists('token_get_all')) {
return $source;
@@ -941,10 +945,10 @@ namespace Symfony\Component\ClassLoader
class ClassCollectionLoader
{
- static private $loaded;
+ private static $loaded;
- static public function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
+ public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
{
if (isset(self::$loaded[$name])) {
return;
@@ -992,7 +996,7 @@ class ClassCollectionLoader
$files = array();
$content = '';
foreach ($classes as $class) {
- if (!class_exists($class) && !interface_exists($class) && function_exists('trait_exists') && !trait_exists($class)) {
+ if (!class_exists($class) && !interface_exists($class) && (!function_exists('trait_exists') || !trait_exists($class))) {
throw new \InvalidArgumentException(sprintf('Unable to load class "%s"', $class));
}
@@ -1022,7 +1026,7 @@ class ClassCollectionLoader
}
- static public function fixNamespaceDeclarations($source)
+ public static function fixNamespaceDeclarations($source)
{
if (!function_exists('token_get_all')) {
return $source;
@@ -1067,7 +1071,7 @@ class ClassCollectionLoader
}
- static private function writeCacheFile($file, $content)
+ private static function writeCacheFile($file, $content)
{
$tmpFile = tempnam(dirname($file), basename($file));
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
@@ -1080,7 +1084,7 @@ class ClassCollectionLoader
}
- static private function stripComments($source)
+ private static function stripComments($source)
{
if (!function_exists('token_get_all')) {
return $source;
@@ -1389,28 +1393,28 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
interface BundleInterface
{
- function boot();
+ public function boot();
- function shutdown();
+ public function shutdown();
- function build(ContainerBuilder $container);
+ public function build(ContainerBuilder $container);
- function getContainerExtension();
+ public function getContainerExtension();
- function getParent();
+ public function getParent();
- function getName();
+ public function getName();
- function getNamespace();
+ public function getNamespace();
- function getPath();
+ public function getPath();
}
}
View
6 app/config/config.yml
@@ -87,4 +87,8 @@ fos_rest:
router: router
templating: templating
serializer: serializer
- view_handler: fos_rest.view_handler.default
+ view_handler: fos_rest.view_handler.default
+
+sensio_framework_extra:
+ view:
+ annotations: false
View
37 deps
@@ -1,44 +1,46 @@
[symfony]
git=http://github.com/symfony/symfony.git
- version=v2.0.3
+ version=origin/2.0
[twig]
git=http://github.com/fabpot/Twig.git
- version=v1.1.2
+ version=v1.8.2
[monolog]
git=http://github.com/Seldaek/monolog.git
- version=1.0.1
+ version=1.0.2
[doctrine-common]
git=http://github.com/doctrine/common.git
- version=2.1.1
+ version=2.1.4
[doctrine-dbal]
git=http://github.com/doctrine/dbal.git
- version=2.1.2
+ version=2.1.7
[doctrine]
git=http://github.com/doctrine/doctrine2.git
- version=2.1.1
+ version=2.1.7
[swiftmailer]
git=http://github.com/swiftmailer/swiftmailer.git
- version=v4.1.2
+ version=v4.2.0
[assetic]
git=http://github.com/kriswallsmith/assetic.git
- version=v1.0.2
+ version=v1.0.3
[twig-extensions]
git=http://github.com/fabpot/Twig-extensions.git
[metadata]
git=http://github.com/schmittjoh/metadata.git
+ version=1.1.0
[SensioFrameworkExtraBundle]
git=http://github.com/sensio/SensioFrameworkExtraBundle.git
target=/bundles/Sensio/Bundle/FrameworkExtraBundle
+ version=origin/2.0
[JMSSecurityExtraBundle]
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
@@ -48,28 +50,31 @@
[SensioDistributionBundle]
git=http://github.com/sensio/SensioDistributionBundle.git
target=/bundles/Sensio/Bundle/DistributionBundle
- version=origin/1.0
+ version=origin/2.0
[SensioGeneratorBundle]
git=http://github.com/sensio/SensioGeneratorBundle.git
target=/bundles/Sensio/Bundle/GeneratorBundle
+ version=origin/2.0
[AsseticBundle]
git=http://github.com/symfony/AsseticBundle.git
target=/bundles/Symfony/Bundle/AsseticBundle
- version=v1.0.1
+ version=origin/2.0
[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git
-[DoctrineFixturesBundle]
- git=http://github.com/symfony/DoctrineFixturesBundle.git
- target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
+[JMSSerializerBundle]
+ git=git://github.com/schmittjoh/JMSSerializerBundle.git
+ target=bundles/JMS/SerializerBundle
+
+[FOSRest]
+ git=git://github.com/FriendsOfSymfony/FOSRest.git
+ target=fos/FOS/Rest
[FOSRestBundle]
git=git://github.com/FriendsOfSymfony/FOSRestBundle.git
target=bundles/FOS/RestBundle
-[JMSSerializerBundle]
- git=git://github.com/schmittjoh/JMSSerializerBundle.git
- target=bundles/JMS/SerializerBundle
+
View
33 deps.lock
@@ -1,14 +1,19 @@
-symfony 6a25df0ebf92074bf541fc7ca53d9fcd27981c3d
-twig 396435ecd05556adb0a8bd05b14641cb4f8a8aa5
-monolog 303b8a83c87d5c6d749926cf02620465a5dcd0f2
-doctrine-common 174111c8d245d560e1af4c7455b730347f85686d
-doctrine-dbal edc628f7e7fa5a116b9b41838e7955c03f7af2e0
-doctrine 05d12e20be58ab4d5fa403c5bd6ac06d1fce97e5
-swiftmailer 8c3165691e36302405926abbae7526549db8b899
-assetic f829ad23d23c87480151a21faad49fefe7c09e5d
-twig-extensions eba4f5d572bec05c72a47bbd73ba0a3330cf8f54
-SensioFrameworkExtraBundle 9b9194a47effc66b08d44ae110b982352119ca17
-JMSSecurityExtraBundle b8b7eb294ed83d83ca7260ac018e701f08003538
-SensioDistributionBundle 2082cb99d408fd89243059c6eff866347ec00bbe
-SensioGeneratorBundle 88ecf05691825c81b6a19ca6e2dc1849f1a5dcd4
-AsseticBundle 41b5913b5086a0909af92adcb4a6005ee0051b16
+symfony 07d108af5ec88b20efd1faf8931e15ec5b89df15
+twig 2afc513620e7f8dadda92a0f4ed04cb157e048df
+monolog b704c49a3051536f67f2d39f13568f74615b9922
+doctrine-common b886898821288d305862ee9c567cc5b5cbb4c0dc
+doctrine-dbal 64650385987dee6be046b8fa2485ff4d7663f814
+doctrine 03d2b0f30c35d313339478d24337dd1a28a2f2f2
+swiftmailer 7ce4188c9ba823707d5a1e8798eba1c2cce01567
+assetic 4aeef88b7908510d0bcbbde357f0adf470534ed8
+twig-extensions feb6d3f10c411e2631997c0a905aa581c80305c1
+metadata 30c622cad82e39a6856b981a9bfb9df06b3cc067
+SensioFrameworkExtraBundle 85911039aca2ef39805640d9238c7157d8c30d2e
+JMSSecurityExtraBundle e752f888c51425f71382c056961f10f2be642102
+SensioDistributionBundle 41a6c5caed65f02bb09c95a90579f047616471fd
+SensioGeneratorBundle c0118ce370f8da20e43051f2dd1ae331a202ab9c
+AsseticBundle 6f15728c1aefa5246caa83730e3dbf70b0d46052
+doctrine-fixtures 779c3dfe446b6da893be87b908d6be28345d1e01
+JMSSerializerBundle 1f308a587742246e87e580290f3bae23073d1d70
+FOSRest 5ea703f5a3f5c7110cadeccb91b212c0eb7ea2d0
+FOSRestBundle d3f15d6c913d25fe5b29185e6e6be510afd09c73
Please sign in to comment.
Something went wrong with that request. Please try again.