Browse Source

Update deps

Jordi Boggiano 13 years ago
parent
commit
9b52b3f090
3 changed files with 7 additions and 0 deletions
  1. 1 0
      app/autoload.php
  2. 3 0
      deps
  3. 3 0
      src/Packagist/WebBundle/Package/Updater.php

+ 1 - 0
app/autoload.php

@@ -20,6 +20,7 @@ $loader->registerNamespaces(array(
     'WhiteOctober\PagerfantaBundle' => __DIR__.'/../vendor/bundles',
     'Pagerfanta'  => __DIR__.'/../vendor/pagerfanta/src',
     'Nelmio'           => __DIR__.'/../vendor/bundles',
+    'Seld\JsonLint'    => __DIR__.'/../vendor/jsonlint/src',
 ));
 $loader->registerPrefixes(array(
     'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',

+ 3 - 0
deps

@@ -82,3 +82,6 @@
 [NelmioSolariumBundle]
     git=https://github.com/nelmio/NelmioSolariumBundle.git
     target=/bundles/Nelmio/SolariumBundle
+
+[jsonlint]
+    git=https://github.com/Seldaek/jsonlint.git

+ 3 - 0
src/Packagist/WebBundle/Package/Updater.php

@@ -15,6 +15,7 @@ namespace Packagist\WebBundle\Package;
 use Composer\Package\AliasPackage;
 use Composer\Package\PackageInterface;
 use Composer\Repository\RepositoryInterface;
+use Composer\Util\ErrorHandler;
 use Packagist\WebBundle\Entity\Author;
 use Packagist\WebBundle\Entity\Package;
 use Packagist\WebBundle\Entity\Tag;
@@ -53,6 +54,8 @@ class Updater
     public function __construct(RegistryInterface $doctrine)
     {
         $this->doctrine = $doctrine;
+
+        ErrorHandler::register();
     }
 
     /**