. */ namespace vierbergenlars\AuthserverExternalAccountBundle\Event; use Symfony\Component\EventDispatcher\Event; class LoginButtonEvent extends Event { private $buttons = []; public function addButton($options) { $this->buttons[] = $options + [ 'style' => 'default', 'icon' => null, 'url' => null, 'route' => null, ]; } public function getButtons() { return $this->buttons; } }