public function getDefinition($entryName)
{
if ($this->decorate) {
return new DecoratorDefinition($entryName, $this->factory, $this->scope, $this->parameters);
}
return new FactoryDefinition($entryName, $this->factory, $this->scope, $this->parameters);
}