src/Controller/Component/CaptchaComponent.php
public function startup(Event $event)
    {
        $this->request->session()->read();
        $this->visualCaptcha = new PhpCaptcha();
    }
public function startup(Event $event)
    {
        $this->request->session()->read();
        $this->visualCaptcha = new PhpCaptcha();
    }
startup method

@param Event $event