public function __construct(Locator $locator, $entityName) { $this->locator = $locator; $this->entityName = $entityName; $this->loadEvents(); }