EventCollection should be EventManagerInterface at passing parameter to attach() method

EventCollection class is not available now.