]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Form/CaptchaType.php
Cleanup
[packbundle] / Form / CaptchaType.php
index da087c081cf6b248104a37dfd2fbab50fcc71c17..2ff22bac23f7e3f8506023a857e5e7eccd8ca171 100644 (file)
@@ -29,21 +29,6 @@ use Symfony\Component\Form\FormError;
  * @see https://symfony.com/doc/current/form/create_custom_field_type.html
  */
 class CaptchaType extends AbstractType {
  * @see https://symfony.com/doc/current/form/create_custom_field_type.html
  */
 class CaptchaType extends AbstractType {
-       /**
-        * @var ImageUtil $image
-        */
-       private $image;
-
-       /**
-        * @var SluggerUtil $slugger
-        */
-       private $slugger;
-
-       /**
-        * @var Translator instance
-        */
-       private $translator;
-
        /**
         * Constructor
         *
        /**
         * Constructor
         *
@@ -51,21 +36,13 @@ class CaptchaType extends AbstractType {
         * @param SluggerUtil $slugger
         * @param TranslatorInterface $translator The translator instance
         */
         * @param SluggerUtil $slugger
         * @param TranslatorInterface $translator The translator instance
         */
-       public function __construct(ImageUtil $image, SluggerUtil $slugger, TranslatorInterface $translator) {
-               //Set image
-               $this->image = $image;
-
-               //Set slugger
-               $this->slugger = $slugger;
-
-               //Set translator
-               $this->translator = $translator;
+       public function __construct(protected ImageUtil $image, protected SluggerUtil $slugger, protected TranslatorInterface $translator) {
        }
 
        /**
        }
 
        /**
-        * Build form
-        *
         * {@inheritdoc}
         * {@inheritdoc}
+        *
+        * Build form
         */
        public function buildForm(FormBuilderInterface $builder, array $options): void {
                //Set captcha
         */
        public function buildForm(FormBuilderInterface $builder, array $options): void {
                //Set captcha