X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/blobdiff_plain/232d0fe60cb6990fd231a2645233e3ef8c00cbea..f94eaaa325da4edb18e4f1bbdc49173cdeb882b7:/Util/ImageUtil.php diff --git a/Util/ImageUtil.php b/Util/ImageUtil.php index de1db0a..03b4616 100644 --- a/Util/ImageUtil.php +++ b/Util/ImageUtil.php @@ -84,6 +84,31 @@ class ImageUtil { */ protected SluggerUtil $slugger; + /** + * 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 * @@ -93,23 +118,23 @@ class ImageUtil { * @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 captcha background + //Set captcha background $this->captchaBackground = $captchaBackground; - //set captcha fill + //Set captcha fill $this->captchaFill = $captchaFill; - //set captcha font size + //Set captcha font size $this->captchaFontSize = $captchaFontSize; - //set captcha stroke + //Set captcha stroke $this->captchaStroke = $captchaStroke; - //set captcha stroke width + //Set captcha stroke width $this->captchaStrokeWidth = $captchaStrokeWidth; //Set path