public function validateAttributes(Definition $definition) { $this->validateClass($definition); $this->validateFactory($definition); }