Explorar o código

added port configuraiton for Doctrine

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
5b6fd1191f

+ 1 - 0
Configurator/Form/DoctrineStepType.php

@@ -28,6 +28,7 @@ class DoctrineStepType extends AbstractType
             ->add('driver', 'choice', array('choices' => DoctrineStep::getDrivers()))
             ->add('name', 'text')
             ->add('host', 'text')
+            ->add('port', 'text')
             ->add('user', 'text')
             ->add('password', 'repeated', array(
                 'required'        => false,

+ 5 - 0
Configurator/Step/DoctrineStep.php

@@ -31,6 +31,11 @@ class DoctrineStep implements StepInterface
      */
     public $host;
 
+    /**
+     * @Assert\Min(0)
+     */
+    public $port;
+
     /**
      * @Assert\NotBlank
      */