فهرست منبع

[DoctrineBundle] Fixed typo

Pascal Borreli 14 سال پیش
والد
کامیت
68140021fc

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/CacheWarmer/ProxyCacheWarmer.php

@@ -38,7 +38,7 @@ class ProxyCacheWarmer implements CacheWarmerInterface
     }
     }
 
 
     /**
     /**
-     * This cache warmer is not optional, without proxies fatal error occour!
+     * This cache warmer is not optional, without proxies fatal error occurs!
      *
      *
      * @return false
      * @return false
      */
      */

+ 2 - 2
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

@@ -43,7 +43,7 @@ Alternatively, you can limit generation to a single entity within a bundle:
 
 
   <info>./app/console doctrine:generate:entities "MyCustomBundle" --entity="User"</info>
   <info>./app/console doctrine:generate:entities "MyCustomBundle" --entity="User"</info>
 
 
-You have to specifiy the shortname (without namespace) of the entity you want to filter for.
+You have to specify the shortname (without namespace) of the entity you want to filter for.
 EOT
 EOT
         );
         );
     }
     }
@@ -66,7 +66,7 @@ EOT
 
 
                 if (strpos($metadata->name, $foundBundle->getNamespace()) === false) {
                 if (strpos($metadata->name, $foundBundle->getNamespace()) === false) {
                     throw new \RuntimeException(
                     throw new \RuntimeException(
-                        "Entity " . $metadata->name . " and bundle don't have a commont namespace, ".
+                        "Entity " . $metadata->name . " and bundle don't have a common namespace, ".
                         "generation failed because the target directory cannot be detected.");
                         "generation failed because the target directory cannot be detected.");
                 }
                 }
 
 

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/GenerateRepositoriesDoctrineCommand.php

@@ -60,7 +60,7 @@ EOT
                 if ($metadata->customRepositoryClassName) {
                 if ($metadata->customRepositoryClassName) {
                     if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) {
                     if (strpos($metadata->customRepositoryClassName, $foundBundle->getName()) === false) {
                         throw new \RuntimeException(
                         throw new \RuntimeException(
-                            "Repository " . $metadata->customRepositoryClassName . " and bundle don't have a commont namespace, ".
+                            "Repository " . $metadata->customRepositoryClassName . " and bundle don't have a common namespace, ".
                             "generation failed because the target directory cannot be detected.");
                             "generation failed because the target directory cannot be detected.");
                     }
                     }
 
 

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/RunDqlDoctrineCommand.php

@@ -42,7 +42,7 @@ You can also optional specify some additional options like what type of hydratio
 
 
   <info>./app/console doctrine:query:dql "SELECT u FROM UserBundle:User u" --hydrate=array</info>
   <info>./app/console doctrine:query:dql "SELECT u FROM UserBundle:User u" --hydrate=array</info>
 
 
-Additionaly you can specify the first result and maximum amount of results to show:
+Additionally you can specify the first result and maximum amount of results to show:
 
 
   <info>./app/console doctrine:query:dql "SELECT u FROM UserBundle:User u" --first-result=0 --max-result=30</info>
   <info>./app/console doctrine:query:dql "SELECT u FROM UserBundle:User u" --first-result=0 --max-result=30</info>
 EOT
 EOT

+ 5 - 5
src/Symfony/Bundle/DoctrineBundle/DependencyInjection/DoctrineExtension.php

@@ -108,7 +108,7 @@ class DoctrineExtension extends AbstractDoctrineExtension
             'wrapper-class'         => 'wrapperClass', // doctrine conv.
             'wrapper-class'         => 'wrapperClass', // doctrine conv.
             'charset'               => 'charset',
             'charset'               => 'charset',
         );
         );
-        $supportedContrainerParams = array(
+        $supportedContainerParams = array(
             'platform-service'      => 'platform_service',
             'platform-service'      => 'platform_service',
             'platform_service'      => 'platform_service',
             'platform_service'      => 'platform_service',
             'logging'               => 'logging',
             'logging'               => 'logging',
@@ -173,8 +173,8 @@ class DoctrineExtension extends AbstractDoctrineExtension
                 foreach ($connection as $k => $v) {
                 foreach ($connection as $k => $v) {
                     if (isset($supportedConnectionParams[$k])) {
                     if (isset($supportedConnectionParams[$k])) {
                         $mergedConfig['connections'][$connectionName]['driver'][$supportedConnectionParams[$k]] = $v;
                         $mergedConfig['connections'][$connectionName]['driver'][$supportedConnectionParams[$k]] = $v;
-                    } else if (isset($supportedContrainerParams[$k])) {
-                        $mergedConfig['connections'][$connectionName]['container'][$supportedContrainerParams[$k]] = $v;
+                    } else if (isset($supportedContainerParams[$k])) {
+                        $mergedConfig['connections'][$connectionName]['container'][$supportedContainerParams[$k]] = $v;
                     }
                     }
                 }
                 }
             }
             }
@@ -447,8 +447,8 @@ class DoctrineExtension extends AbstractDoctrineExtension
      *
      *
      * There are two distinct configuration possibilities for mapping information:
      * There are two distinct configuration possibilities for mapping information:
      *
      *
-     * 1. Specifiy a bundle and optionally details where the entity and mapping information reside.
-     * 2. Specifiy an arbitrary mapping location.
+     * 1. Specify a bundle and optionally details where the entity and mapping information reside.
+     * 2. Specify an arbitrary mapping location.
      *
      *
      * @example
      * @example
      *
      *

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Tests/CacheWarmer/ProxyCacheWarmerTest.php

@@ -16,7 +16,7 @@ use Symfony\Bundle\DoctrineBundle\CacheWarmer\ProxyCacheWarmer;
 class ProxyCacheWarmerTest extends \Symfony\Bundle\DoctrineBundle\Tests\TestCase
 class ProxyCacheWarmerTest extends \Symfony\Bundle\DoctrineBundle\Tests\TestCase
 {
 {
     /**
     /**
-     * This is not necessarily a good test, it doesnt generate any proxies
+     * This is not necessarily a good test, it doesn't generate any proxies
      * because there are none in the AnnotationsBundle. However that is
      * because there are none in the AnnotationsBundle. However that is
      * rather a task of doctrine to test. We touch the lines here and
      * rather a task of doctrine to test. We touch the lines here and
      * verify that the container is called correctly for the relevant information.
      * verify that the container is called correctly for the relevant information.