Update bundle & stock file

- update stock file (AppKernel, app.php, etc ..) from SymfonyStandard edition)
- update bundle to latest release
- remove security on profiler
This commit is contained in:
Jeremy Benoist
2015-12-22 13:00:37 +01:00
parent 619cc45359
commit 5c895a7fd1
28 changed files with 208 additions and 203 deletions

View File

@ -19,7 +19,7 @@ class ChangePasswordType extends AbstractType
'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')),
))
->add('new_password', RepeatedType::class, array(
'type' => 'password',
'type' => PasswordType::class,
'invalid_message' => 'The password fields must match.',
'required' => true,
'first_options' => array('label' => 'New password'),

View File

@ -36,7 +36,8 @@ class ConfigType extends AbstractType
))
->add('items_per_page')
->add('language', ChoiceType::class, array(
'choices' => $this->languages,
'choices' => array_flip($this->languages),
'choices_as_values' => true,
))
->add('save', SubmitType::class)
;

View File

@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
@ -18,7 +19,7 @@ class NewUserType extends AbstractType
$builder
->add('username', TextType::class, array('required' => true))
->add('plainPassword', RepeatedType::class, array(
'type' => 'password',
'type' => PasswordType::class,
'constraints' => array(
new Constraints\Length(array(
'min' => 8,

View File

@ -19,7 +19,7 @@ class TaggingRuleType extends AbstractType
;
$tagsField = $builder
->create('tags', 'text')
->create('tags', TextType::class)
->addModelTransformer(new StringToListTransformer(','));
$builder->add($tagsField);