public static function getSubscribedEvents()
    {
        $methods = get_class_methods(get_called_class());

        $list = [];
        foreach ($methods as $method) {
            if (strpos($method, 'on') === 0) {
                $list[$method] = [$method, 0];
            }
        }

        return $list;
    }
public static function getSubscribedEvents()
    {
        $methods = get_class_methods(get_called_class());

        $list = [];
        foreach ($methods as $method) {
            if (strpos($method, 'on') === 0) {
                $list[$method] = [$method, 0];
            }
        }

        return $list;
    }
public static function getSubscribedEvents ( ) { $ methods = get_class_methods ( get_called_class ( ) ) ; $ list = [ ] ; foreach ( $ methods as $ method ) { if ( strpos ( $ method , 'on' ) === 0 ) { $ list [ $ method ] = [ $ method , 0 ] ; } } return $ list ; }
By default assign all methods as listeners using the default priority.

@return array
By default assign all methods as listeners using the default priority .