diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/password_field.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/password_field.php new file mode 100644 index 0000000000000..b583f6a0574d8 --- /dev/null +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/password_field.php @@ -0,0 +1,8 @@ +isDisabled()): ?>disabled="disabled" + getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?> + attributes($attr) ?> +/> \ No newline at end of file diff --git a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php index 537364684c65a..2640ef0419ac7 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php +++ b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php @@ -152,7 +152,7 @@ public function registerCommands(Application $application) foreach ($finder as $file) { $r = new \ReflectionClass($prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php')); if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract()) { - $application->addCommand($r->newInstance()); + $application->add($r->newInstance()); } } }