Development

Changeset 32151

You must first sign up to be able to contribute.

Changeset 32151

Show
Ignore:
Timestamp:
02/27/11 21:15:06 (2 years ago)
Author:
fabien
Message:

Merge branch 'master' of git://github.com/symfony/symfony

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php

    r31979 r32151  
    1818use Symfony\Component\Console\Output\Output; 
    1919use Symfony\Bundle\FrameworkBundle\Util\Filesystem; 
    20 use Doctrine\Common\Cli\Configuration; 
    21 use Doctrine\Common\Cli\CliController as DoctrineCliController; 
    2220use Doctrine\DBAL\Connection; 
    2321 
  • branches/2.0/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

    r32076 r32151  
    1818use Symfony\Component\Console\Output\Output; 
    1919use Symfony\Bundle\FrameworkBundle\Util\Filesystem; 
    20 use Doctrine\Common\Cli\Configuration; 
    21 use Doctrine\Common\Cli\CliController as DoctrineCliController; 
    2220use Doctrine\DBAL\Connection; 
    2321 
     
    7573        } else { 
    7674            $output->writeln(sprintf('<info>Would drop the database named <comment>%s</comment>.</info>', $name)); 
    77             $output->writeln(sprintf('<error>All data will be lost!</error>', $name)); 
     75            $output->writeln('<error>All data will be lost!</error>'); 
    7876        } 
    7977    } 
  • branches/2.0/src/Symfony/Bundle/DoctrineBundle/Command/LoadDataFixturesDoctrineCommand.php

    r32076 r32151  
    2020use Symfony\Bundle\FrameworkBundle\Util\Filesystem; 
    2121use Symfony\Bundle\DoctrineAbstractBundle\Common\DataFixtures\Loader as DataFixturesLoader; 
    22 use Doctrine\Common\Cli\Configuration; 
    23 use Doctrine\Common\Cli\CliController as DoctrineCliController; 
    2422use Doctrine\Common\DataFixtures\Executor\ORMExecutor; 
    2523use Doctrine\Common\DataFixtures\Purger\ORMPurger; 
  • branches/2.0/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php

    r32076 r32151  
    2020use Symfony\Bundle\FrameworkBundle\Util\Filesystem; 
    2121use Symfony\Bundle\DoctrineAbstractBundle\Common\DataFixtures\Loader as DataFixturesLoader; 
    22 use Doctrine\Common\Cli\Configuration; 
    23 use Doctrine\Common\Cli\CliController as DoctrineCliController; 
    2422use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor; 
    2523use Doctrine\Common\DataFixtures\Purger\MongoDBPurger; 
  • branches/2.0/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

    r31885 r32151  
    160160        if (is_object($value)) { 
    161161            return sprintf('object(%s)', get_class($value)); 
    162         } else { 
    163             return preg_replace("/\n\s*/s", '', var_export($value, true)); 
    164162        } 
     163 
     164        return preg_replace("/\n\s*/s", '', var_export($value, true)); 
    165165    } 
    166166} 
  • branches/2.0/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php

    r31979 r32151  
    6767        if (false === $value || null === $value || ('' === $value && 'value' != $name)) { 
    6868            return ''; 
    69         } else { 
    70             return ' '.$this->attribute($name, $value); 
    7169        } 
     70 
     71        return ' '.$this->attribute($name, $value); 
    7272    } 
    7373 
  • branches/2.0/src/Symfony/Component/BrowserKit/Response.php

    r32076 r32151  
    119119                if ($first) { 
    120120                    return is_array($value) ? (count($value) ? $value[0] : '') : $value; 
    121                 } else { 
    122                     return is_array($value) ? $value : array($value); 
    123121                } 
     122 
     123                return is_array($value) ? $value : array($value); 
    124124            } 
    125125        } 
  • branches/2.0/src/Symfony/Component/Console/Application.php

    r32076 r32151  
    130130            exit($statusCode); 
    131131            // @codeCoverageIgnoreEnd 
    132         } else { 
    133             return $statusCode; 
    134         } 
     132        } 
     133 
     134        return $statusCode; 
    135135    } 
    136136 
     
    316316        if ('UNKNOWN' !== $this->getName() && 'UNKNOWN' !== $this->getVersion()) { 
    317317            return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion()); 
    318         } else { 
    319             return '<info>Console Tool</info>'; 
    320         } 
     318        } 
     319 
     320        return '<info>Console Tool</info>'; 
    321321    } 
    322322 
  • branches/2.0/src/Symfony/Component/Console/Command/Command.php

    r31885 r32151  
    160160        if ($this->code) { 
    161161            return call_user_func($this->code, $input, $output); 
    162         } else { 
    163             return $this->execute($input, $output); 
    164         } 
     162        } 
     163 
     164        return $this->execute($input, $output); 
    165165    } 
    166166 
  • branches/2.0/src/Symfony/Component/Console/Helper/DialogHelper.php

    r31885 r32151  
    6262        if (false === $default) { 
    6363            return $answer && 'y' == strtolower($answer[0]); 
    64         } else { 
    65             return !$answer || 'y' == strtolower($answer[0]); 
    6664        } 
     65 
     66        return !$answer || 'y' == strtolower($answer[0]); 
    6767        // @codeCoverageIgnoreEnd 
    6868    } 
  • branches/2.0/src/Symfony/Component/Console/Input/ArgvInput.php

    r32076 r32151  
    276276                    if (false !== $pos = strpos($token, '=')) { 
    277277                        return substr($token, $pos + 1); 
    278                     } else { 
    279                         return array_shift($tokens); 
    280278                    } 
     279 
     280                    return array_shift($tokens); 
    281281                } 
    282282            } 
  • branches/2.0/src/Symfony/Component/Console/Output/StreamOutput.php

    r31898 r32151  
    9898        if (DIRECTORY_SEPARATOR == '\\') { 
    9999            return false !== getenv('ANSICON'); 
    100         } else { 
    101             return function_exists('posix_isatty') && @posix_isatty($this->stream); 
    102100        } 
     101 
     102        return function_exists('posix_isatty') && @posix_isatty($this->stream); 
    103103        // @codeCoverageIgnoreEnd 
    104104    } 
  • branches/2.0/src/Symfony/Component/CssSelector/Node/AttribNode.php

    r32076 r32151  
    5656        if ($this->operator == 'exists') { 
    5757            return sprintf('%s[%s[%s]]', __CLASS__, $this->selector, $this->formatAttrib()); 
    58         } else { 
    59             return sprintf('%s[%s[%s %s %s]]', __CLASS__, $this->selector, $this->formatAttrib(), $this->operator, $this->value); 
    6058        } 
     59 
     60        return sprintf('%s[%s[%s %s %s]]', __CLASS__, $this->selector, $this->formatAttrib(), $this->operator, $this->value); 
    6161    } 
    6262 
  • branches/2.0/src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php

    r32076 r32151  
    8080        } else if (is_string($value)) { 
    8181            return $this->resolveString($value); 
    82         } else { 
    83             return $value; 
    8482        } 
     83 
     84        return $value; 
    8585    } 
    8686 
  • branches/2.0/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

    r32076 r32151  
    467467            if (is_object($callable[0]) && $callable[0] instanceof Reference) { 
    468468                return sprintf("        %s->%s(\$%s);\n", $this->getServiceCall((string) $callable[0]), $callable[1], $variableName); 
    469             } else { 
    470                 return sprintf("        call_user_func(array(%s, '%s'), \$%s);\n", $this->dumpValue($callable[0]), $callable[1], $variableName); 
    471             } 
    472         } else { 
    473             return sprintf("        %s(\$%s);\n", $callable, $variableName); 
    474         } 
     469            } 
     470 
     471            return sprintf("        call_user_func(array(%s, '%s'), \$%s);\n", $this->dumpValue($callable[0]), $callable[1], $variableName); 
     472        } 
     473 
     474        return sprintf("        %s(\$%s);\n", $callable, $variableName); 
    475475    } 
    476476 
  • branches/2.0/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php

    r32076 r32151  
    207207        } elseif (is_object($value) || is_resource($value)) { 
    208208            throw new \RuntimeException('Unable to dump a service container if a parameter is an object or a resource.'); 
    209         } else { 
    210             return $value; 
    211         } 
     209        } 
     210 
     211        return $value; 
    212212    } 
    213213 
     
    223223        if (null !== $reference && ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE !== $reference->getInvalidBehavior()) { 
    224224            return sprintf('@?%s', $id); 
    225         } else { 
    226             return sprintf('@%s', $id); 
    227         } 
     225        } 
     226 
     227        return sprintf('@%s', $id); 
    228228    } 
    229229 
  • branches/2.0/src/Symfony/Component/Form/ChoiceField.php

    r32076 r32151  
    206206                'value' => $choice, 
    207207            )); 
    208         } else { 
    209             return new RadioField($choice, array( 
    210                 'value' => $choice, 
    211             )); 
    212         } 
     208        } 
     209 
     210        return new RadioField($choice, array( 
     211            'value' => $choice, 
     212        )); 
    213213    } 
    214214 
  • branches/2.0/src/Symfony/Component/Form/Form.php

    r32076 r32151  
    837837 
    838838            return $length > $max; 
    839         } else { 
    840             return false; 
    841         } 
     839        } 
     840 
     841        return false; 
    842842    } 
    843843 
  • branches/2.0/src/Symfony/Component/Form/HybridField.php

    r32076 r32151  
    9696        if ($this->mode === self::FORM) { 
    9797            return parent::getDisplayedData(); 
    98         } else { 
    99             return Field::getDisplayedData(); 
    10098        } 
     99 
     100        return Field::getDisplayedData(); 
    101101    } 
    102102 
     
    132132        if ($this->mode === self::FORM) { 
    133133            return parent::isEmpty(); 
    134         } else { 
    135             return Field::isEmpty(); 
    136134        } 
     135 
     136        return Field::isEmpty(); 
    137137    } 
    138138} 
  • branches/2.0/src/Symfony/Component/Form/PropertyPath.php

    r31979 r32151  
    247247        if ($currentIndex < $this->length) { 
    248248            return $this->readPropertyPath($value, $currentIndex); 
    249         } else { 
    250             return $value; 
    251         } 
     249        } 
     250 
     251        return $value; 
    252252    } 
    253253 
  • branches/2.0/src/Symfony/Component/HttpFoundation/File/File.php

    r32148 r32151  
    520520        if ($ext = pathinfo($this->getName(), \PATHINFO_EXTENSION)) { 
    521521            return '.' . $ext; 
    522         } else { 
    523             return ''; 
    524         } 
     522        } 
     523 
     524        return ''; 
    525525    } 
    526526 
     
    538538        if (isset(self::$defaultExtensions[$type])) { 
    539539            return '.' . self::$defaultExtensions[$type]; 
    540         } else { 
    541             return $this->getExtension(); 
    542         } 
     540        } 
     541 
     542        return $this->getExtension(); 
    543543    } 
    544544 
  • branches/2.0/src/Symfony/Component/HttpFoundation/FileBag.php

    r32076 r32151  
    8787            if ($keys != $this->fileKeys) { 
    8888                $file = array_map(array($this, 'convertFileInformation'), $file); 
    89             } else 
     89            } else { 
    9090                if ($file['error'] === UPLOAD_ERR_NO_FILE) { 
    9191                    $file = null; 
     
    9494                    $file['type'], $file['size'], $file['error']); 
    9595                } 
     96            } 
    9697        } 
    9798        return $file; 
  • branches/2.0/src/Symfony/Component/HttpFoundation/HeaderBag.php

    r32076 r32151  
    9797            if (null === $default) { 
    9898                return $first ? null : array(); 
    99             } else { 
    100                 return $first ? $default : array($default); 
    10199            } 
     100 
     101            return $first ? $default : array($default); 
    102102        } 
    103103 
    104104        if ($first) { 
    105105            return count($this->headers[$key]) ? $this->headers[$key][0] : $default; 
    106         } else { 
    107             return $this->headers[$key]; 
    108         } 
     106        } 
     107 
     108        return $this->headers[$key]; 
    109109    } 
    110110 
  • branches/2.0/src/Symfony/Component/HttpFoundation/Request.php

    r32076 r32151  
    437437        if (('http' == $scheme && $port == 80) || ('https' == $scheme && $port == 443)) { 
    438438            return $name; 
    439         } else { 
    440             return $name.':'.$port; 
    441         } 
     439        } 
     440 
     441        return $name.':'.$port; 
    442442    } 
    443443 
  • branches/2.0/src/Symfony/Component/HttpFoundation/SessionStorage/PdoSessionStorage.php

    r31979 r32151  
    172172            if (count($sessionRows) == 1) { 
    173173                return $sessionRows[0][0]; 
    174             } else { 
    175                 // session does not exist, create it 
    176                 $sql = 'INSERT INTO '.$db_table.'('.$db_id_col.', '.$db_data_col.', '.$db_time_col.') VALUES (?, ?, ?)'; 
    177  
    178                 $stmt = $this->db->prepare($sql); 
    179                 $stmt->bindParam(1, $id, \PDO::PARAM_STR); 
    180                 $stmt->bindValue(2, '', \PDO::PARAM_STR); 
    181                 $stmt->bindValue(3, time(), \PDO::PARAM_INT); 
    182                 $stmt->execute(); 
    183  
    184                 return ''; 
    185174            } 
     175 
     176            // session does not exist, create it 
     177            $sql = 'INSERT INTO '.$db_table.'('.$db_id_col.', '.$db_data_col.', '.$db_time_col.') VALUES (?, ?, ?)'; 
     178 
     179            $stmt = $this->db->prepare($sql); 
     180            $stmt->bindParam(1, $id, \PDO::PARAM_STR); 
     181            $stmt->bindValue(2, '', \PDO::PARAM_STR); 
     182            $stmt->bindValue(3, time(), \PDO::PARAM_INT); 
     183            $stmt->execute(); 
     184 
     185            return ''; 
    186186        } catch (\PDOException $e) { 
    187187            throw new \RuntimeException(sprintf('PDOException was thrown when trying to manipulate session data: %s', $e->getMessage()), 0, $e); 
  • branches/2.0/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

    r32101 r32151  
    457457                // server the stale response while there is a revalidation 
    458458                return true; 
     459            } 
     460 
     461            // wait for the lock to be released 
     462            $wait = 0; 
     463            while (file_exists($lock) && $wait < 5000000) { 
     464                usleep($wait += 50000); 
     465            } 
     466 
     467            if ($wait < 2000000) { 
     468                // replace the current entry with the fresh one 
     469                $new = $this->lookup($request); 
     470                $entry->headers = $new->headers; 
     471                $entry->setContent($new->getContent()); 
     472                $entry->setStatusCode($new->getStatusCode()); 
     473                $entry->setProtocolVersion($new->getProtocolVersion()); 
     474                $entry->setCookies($new->getCookies()); 
    459475            } else { 
    460                 // wait for the lock to be released 
    461                 $wait = 0; 
    462                 while (file_exists($lock) && $wait < 5000000) { 
    463                     usleep($wait += 50000); 
    464                 } 
    465  
    466                 if ($wait < 2000000) { 
    467                     // replace the current entry with the fresh one 
    468                     $new = $this->lookup($request); 
    469                     $entry->headers = $new->headers; 
    470                     $entry->setContent($new->getContent()); 
    471                     $entry->setStatusCode($new->getStatusCode()); 
    472                     $entry->setProtocolVersion($new->getProtocolVersion()); 
    473                     $entry->setCookies($new->getCookies()); 
    474  
    475                     return true; 
    476                 } else { 
    477                     // backend is slow as hell, send a 503 response (to avoid the dog pile effect) 
    478                     $entry->setStatusCode(503); 
    479                     $entry->setContent('503 Service Unavailable'); 
    480                     $entry->headers->set('Retry-After', 10); 
    481  
    482                     return true; 
    483                 } 
    484             } 
     476                // backend is slow as hell, send a 503 response (to avoid the dog pile effect) 
     477                $entry->setStatusCode(503); 
     478                $entry->setContent('503 Service Unavailable'); 
     479                $entry->headers->set('Retry-After', 10); 
     480            } 
     481 
     482            return true; 
    485483        } 
    486484 
  • branches/2.0/src/Symfony/Component/HttpKernel/HttpCache/Store.php

    r31979 r32151  
    7979 
    8080            return true; 
    81         } else { 
    82             return $path; 
    83         } 
     81        } 
     82 
     83        return $path; 
    8484    } 
    8585 
     
    126126        if (file_exists($body = $this->getPath($headers['x-content-digest'][0]))) { 
    127127            return $this->restoreResponse($headers, $body); 
    128         } else { 
    129             // TODO the metaStore referenced an entity that doesn't exist in 
    130             // the entityStore. We definitely want to return nil but we should 
    131             // also purge the entry from the meta-store when this is detected. 
    132             return null; 
    133         } 
     128        } 
     129 
     130        // TODO the metaStore referenced an entity that doesn't exist in 
     131        // the entityStore. We definitely want to return nil but we should 
     132        // also purge the entry from the meta-store when this is detected. 
     133        return null; 
    134134    } 
    135135 
  • branches/2.0/src/Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php

    r32087 r32151  
    7474        if (isset($data[0]['data'])) { 
    7575            return array($data[0]['data'], $data[0]['ip'], $data[0]['url'], $data[0]['time']); 
    76         } else { 
    77             return false; 
    78         } 
     76        } 
     77 
     78        return false; 
    7979    } 
    8080 
  • branches/2.0/src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php

    r32076 r32151  
    221221        } else if (self::EQUAL === $strategy) { 
    222222            return $requiredMask === $ace->getMask(); 
    223         } else { 
    224             throw new \RuntimeException(sprintf('The strategy "%s" is not supported.', $strategy)); 
    225         } 
     223        } 
     224 
     225        throw new \RuntimeException(sprintf('The strategy "%s" is not supported.', $strategy)); 
    226226    } 
    227227} 
  • branches/2.0/src/Symfony/Component/Security/Acl/Voter/AclVoter.php

    r31979 r32151  
    112112 
    113113                    return self::ACCESS_GRANTED; 
    114                 } else { 
    115                     if (null !== $this->logger) { 
    116                         $this->logger->debug('ACL found, insufficient permissions. Voting to deny access.'); 
    117                     } 
     114                } 
    118115 
    119                     return self::ACCESS_DENIED; 
     116                if (null !== $this->logger) { 
     117                    $this->logger->debug('ACL found, insufficient permissions. Voting to deny access.'); 
    120118                } 
     119 
     120                return self::ACCESS_DENIED; 
    121121            } catch (NoAceFoundException $noAce) { 
    122122                if (null !== $this->logger) { 
  • branches/2.0/src/Symfony/Component/Security/Core/Encoder/PlaintextPasswordEncoder.php

    r31979 r32151  
    4343        if (!$this->ignorePasswordCase) { 
    4444            return $this->comparePasswords($encoded, $pass2); 
    45         } else { 
    46             return $this->comparePasswords(strtolower($encoded), strtolower($pass2)); 
    4745        } 
     46 
     47        return $this->comparePasswords(strtolower($encoded), strtolower($pass2)); 
    4848    } 
    4949} 
  • branches/2.0/src/Symfony/Component/Security/Core/Exception/NonceExpiredException.php

    r31979 r32151  
    1010 */ 
    1111 
    12 namespace Symfony\Component\HttpKernel\Security\EntryPoint
     12namespace Symfony\Component\Security\Core\Exception
    1313 
    1414use Symfony\Component\Security\Core\Exception\AuthenticationException; 
  • branches/2.0/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

    r32091 r32151  
    199199 
    200200            return $event->getSubject()->handle($subRequest, HttpKernelInterface::SUB_REQUEST); 
    201         } else { 
    202             if (null !== $this->logger) { 
    203                 $this->logger->debug(sprintf('Redirecting to %s', $this->options['failure_path'])); 
    204             } 
    205  
    206             $request->getSession()->set(SecurityContextInterface::AUTHENTICATION_ERROR, $failed); 
    207  
    208             return new RedirectResponse(0 !== strpos($this->options['failure_path'], 'http') ? $request->getUriForPath($this->options['failure_path']) : $this->options['failure_path'], 302); 
    209         } 
     201        } 
     202 
     203        if (null !== $this->logger) { 
     204            $this->logger->debug(sprintf('Redirecting to %s', $this->options['failure_path'])); 
     205        } 
     206 
     207        $request->getSession()->set(SecurityContextInterface::AUTHENTICATION_ERROR, $failed); 
     208 
     209        return new RedirectResponse(0 !== strpos($this->options['failure_path'], 'http') ? $request->getUriForPath($this->options['failure_path']) : $this->options['failure_path'], 302); 
    210210    } 
    211211 
  • branches/2.0/src/Symfony/Component/Templating/PhpEngine.php

    r32076 r32151  
    461461        } elseif (function_exists('mb_convert_encoding')) { 
    462462            return mb_convert_encoding($string, $to, $from); 
    463         } else { 
    464             throw new \RuntimeException('No suitable convert encoding function (use UTF-8 as your encoding or install the iconv or mbstring extension).'); 
    465         } 
     463        } 
     464 
     465        throw new \RuntimeException('No suitable convert encoding function (use UTF-8 as your encoding or install the iconv or mbstring extension).'); 
    466466    } 
    467467 
  • branches/2.0/src/Symfony/Component/Templating/TemplateReference.php

    r32094 r32151  
    6363        if (array_key_exists($name, $this->parameters)) { 
    6464            return $this->parameters[$name]; 
    65         } else { 
    66             throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name)); 
    6765        } 
     66 
     67        throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name)); 
    6868    } 
    6969 
  • branches/2.0/src/Symfony/Component/Translation/Interval.php

    r31885 r32151  
    9797        } elseif ('+Inf' === $number || 'Inf' === $number) { 
    9898            return -log(0); 
    99         } else { 
    100             return (int) $number; 
    10199        } 
     100 
     101        return (int) $number; 
    102102    } 
    103103} 
  • branches/2.0/src/Symfony/Component/Yaml/Parser.php

    r32087 r32151  
    344344 
    345345            return $this->parseFoldedScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), intval(abs($modifiers))); 
    346         } else { 
    347             return Inline::load($value); 
    348         } 
     346        } 
     347 
     348        return Inline::load($value); 
    349349    } 
    350350 
  • branches/2.0/tests/Symfony/Tests/Component/BrowserKit/ClientTest.php

    r32076 r32151  
    3737        if (null === $this->nextResponse) { 
    3838            return new Response(); 
    39         } else { 
    40             $response = $this->nextResponse; 
    41             $this->nextResponse = null; 
    42  
    43             return $response; 
    4439        } 
     40 
     41        $response = $this->nextResponse; 
     42        $this->nextResponse = null; 
     43 
     44        return $response; 
    4545    } 
    4646 
  • branches/2.0/tests/Symfony/Tests/Component/Config/Loader/DelegatingLoaderTest.php

    r32076 r32151  
    1414use Symfony\Component\Config\Loader\LoaderResolver; 
    1515use Symfony\Component\Config\Loader\DelegatingLoader; 
    16 use Symfony\Component\Config\Loader\XmlFileLoader; 
    17 use Symfony\Component\Config\Loader\ClosureLoader; 
    18 use Symfony\Component\Config\RouteCollection; 
    19 use Symfony\Component\Config\Route; 
     16use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; 
     17use Symfony\Component\DependencyInjection\Loader\ClosureLoader; 
     18use Symfony\Component\Routing\RouteCollection; 
     19use Symfony\Component\Routing\Route; 
    2020 
    2121class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase 
  • branches/2.0/tests/Symfony/Tests/Component/Console/Input/InputArgumentTest.php

    r31885 r32151  
    1313 
    1414use Symfony\Component\Console\Input\InputArgument; 
    15 use Symfony\Component\Console\Exception; 
    1615 
    1716class InputArgumentTest extends \PHPUnit_Framework_TestCase 
  • branches/2.0/tests/Symfony/Tests/Component/Console/Input/InputDefinitionTest.php

    r31885 r32151  
    1515use Symfony\Component\Console\Input\InputArgument; 
    1616use Symfony\Component\Console\Input\InputOption; 
    17 use Symfony\Component\Console\Exception; 
    1817 
    1918class InputDefinitionTest extends \PHPUnit_Framework_TestCase 
  • branches/2.0/tests/Symfony/Tests/Component/Console/Input/InputOptionTest.php

    r31885 r32151  
    1313 
    1414use Symfony\Component\Console\Input\InputOption; 
    15 use Symfony\Component\Console\Exception; 
    1615 
    1716class InputOptionTest extends \PHPUnit_Framework_TestCase 
  • branches/2.0/tests/Symfony/Tests/Component/DependencyInjection/Loader/ClosureLoaderTest.php

    r31885 r32151  
    1313 
    1414use Symfony\Component\DependencyInjection\ContainerBuilder; 
    15 use Symfony\Component\DependencyInjection\Loader\LoaderResolver; 
     15use Symfony\Component\Config\Loader\LoaderResolver; 
    1616use Symfony\Component\DependencyInjection\Loader\ClosureLoader; 
    1717 
  • branches/2.0/tests/Symfony/Tests/Component/DependencyInjection/Loader/PhpFileLoaderTest.php

    r32076 r32151  
    1515use Symfony\Component\DependencyInjection\Reference; 
    1616use Symfony\Component\DependencyInjection\Definition; 
    17 use Symfony\Component\DependencyInjection\Loader\Loader; 
     17use Symfony\Component\Config\Loader\Loader; 
    1818use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; 
    1919use Symfony\Component\Config\Loader\LoaderResolver; 
  • branches/2.0/tests/Symfony/Tests/Component/DependencyInjection/Loader/XmlFileLoaderTest.php

    r32076 r32151  
    1717use Symfony\Component\DependencyInjection\Reference; 
    1818use Symfony\Component\DependencyInjection\Definition; 
    19 use Symfony\Component\DependencyInjection\Loader\Loader; 
     19use Symfony\Component\Config\Loader\Loader; 
    2020use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; 
    2121use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; 
  • branches/2.0/tests/Symfony/Tests/Component/DependencyInjection/Loader/YamlFileLoaderTest.php

    r32076 r32151  
    1515use Symfony\Component\DependencyInjection\Reference; 
    1616use Symfony\Component\DependencyInjection\Definition; 
    17 use Symfony\Component\DependencyInjection\Loader\Loader; 
     17use Symfony\Component\Config\Loader\Loader; 
    1818use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; 
    1919use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; 
  • branches/2.0/tests/Symfony/Tests/Component/Templating/Loader/LoaderTest.php

    r32076 r32151  
    1515 
    1616use Symfony\Component\Templating\Loader\Loader; 
    17 use Symfony\Component\Templating\Loader\TemplateNameParser; 
     17use Symfony\Component\Templating\TemplateNameParser; 
    1818use Symfony\Component\Templating\TemplateReferenceInterface; 
    1919 
  • branches/2.0/tests/Symfony/Tests/Component/Templating/Storage/StorageTest.php

    r31836 r32151  
    1313 
    1414use Symfony\Component\Templating\Storage\Storage; 
    15 use Symfony\Component\Templating\Renderer\PhpRenderer; 
    1615 
    1716class StorageTest extends \PHPUnit_Framework_TestCase