8000 Fixed broken call to Bundle\FrameworkBundle\Console\Application::addCommand() by phidah · Pull Request #29 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<input type="password"
id="<?php echo $field->getId() ?>"
name="<?php echo $field->getName() ?>"
value="<?php echo $field->getDisplayedData() ?>"
<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
<?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
<?php echo $view['form']->attributes($attr) ?>
/>
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Bundle/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down
0