- function __construct(RouterInterface $router, SluggerUtil $slugger, string $cache = '../var/cache/image', string $public = './bundles/rapsyspack/image', $captchaBackground = self::captchaBackground, $captchaFill = self::captchaFill, $captchaFontSize = self::captchaFontSize, $captchaStroke = self::captchaStroke, $captchaStrokeWidth = self::captchaStrokeWidth) {
- //Set cache
- $this->cache = $cache;
-
- //set captcha background
- $this->captchaBackground = $captchaBackground;
-
- //set captcha fill
- $this->captchaFill = $captchaFill;
-
- //set captcha font size
- $this->captchaFontSize = $captchaFontSize;
-
- //set captcha stroke
- $this->captchaStroke = $captchaStroke;
-
- //set captcha stroke width
- $this->captchaStrokeWidth = $captchaStrokeWidth;
-
- //Set public
- $this->public = $public;
-
- //Set router
- $this->router = $router;
-
- //Set slugger
- $this->slugger = $slugger;
+ function __construct(protected RouterInterface $router, protected SluggerUtil $slugger, protected string $cache = '../var/cache', protected string $path = './bundles/rapsyspack', protected string $prefix = 'image', protected string $background = self::background, protected string $fill = self::fill, protected int $fontSize = self::fontSize, protected string $stroke = self::stroke, protected int $strokeWidth = self::strokeWidth) {