]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Util/ImageUtil.php
Add captcha background, fill, font size, stroke and stroke width members
[packbundle] / Util / ImageUtil.php
index de1db0a3ad62d7441fe5b0cee75595a74bee988f..c43c96d8d5998ccf845e1b8c30c8ec10635f8c4d 100644 (file)
@@ -84,6 +84,46 @@ class ImageUtil {
         */
        protected SluggerUtil $slugger;
 
         */
        protected SluggerUtil $slugger;
 
+       //Captcha background
+       protected string $captchaBackground;
+
+       //Captcha fill
+       protected string $captchaFill;
+
+       //Captcha font size
+       protected int $captchaFontSize;
+
+       //Captcha stroke
+       protected string $captchaStroke;
+
+       //Captcha stroke width
+       protected int $captchaStrokeWidth;
+
+       /**
+        * The captcha background
+        */
+       public string $captchaBackground;
+
+       /**
+        * The captcha fill
+        */
+       public string $captchaFill;
+
+       /**
+        * The captcha font size
+        */
+       public int $captchaFontSize;
+
+       /**
+        * The captcha stroke
+        */
+       public string $captchaStroke;
+
+       /**
+        * The captcha stroke width
+        */
+       public int $captchaStrokeWidth;
+
        /**
         * Creates a new image util
         *
        /**
         * Creates a new image util
         *
@@ -93,23 +133,23 @@ class ImageUtil {
         * @param string $path The public path
         * @param string $prefix The prefix
         */
         * @param string $path The public path
         * @param string $prefix The prefix
         */
-       function __construct(RouterInterface $router, SluggerUtil $slugger, string $cache = '../var/cache', string $path = './bundles/rapsyspack', string $prefix = 'image', $captchaBackground = self::captchaBackground, $captchaFill = self::captchaFill, $captchaFontSize = self::captchaFontSize, $captchaStroke = self::captchaStroke, $captchaStrokeWidth = self::captchaStrokeWidth) {
+       function __construct(RouterInterface $router, SluggerUtil $slugger, string $cache = '../var/cache', string $path = './bundles/rapsyspack', string $prefix = 'image', string $captchaBackground = self::captchaBackground, string $captchaFill = self::captchaFill, int $captchaFontSize = self::captchaFontSize, string $captchaStroke = self::captchaStroke, int $captchaStrokeWidth = self::captchaStrokeWidth) {
                //Set cache
                $this->cache = $cache.'/'.$prefix;
 
                //Set cache
                $this->cache = $cache.'/'.$prefix;
 
-               //set captcha background
+               //Set captcha background
                $this->captchaBackground = $captchaBackground;
 
                $this->captchaBackground = $captchaBackground;
 
-               //set captcha fill
+               //Set captcha fill
                $this->captchaFill = $captchaFill;
 
                $this->captchaFill = $captchaFill;
 
-               //set captcha font size
+               //Set captcha font size
                $this->captchaFontSize = $captchaFontSize;
 
                $this->captchaFontSize = $captchaFontSize;
 
-               //set captcha stroke
+               //Set captcha stroke
                $this->captchaStroke = $captchaStroke;
 
                $this->captchaStroke = $captchaStroke;
 
-               //set captcha stroke width
+               //Set captcha stroke width
                $this->captchaStrokeWidth = $captchaStrokeWidth;
 
                //Set path
                $this->captchaStrokeWidth = $captchaStrokeWidth;
 
                //Set path