public function __construct($optionDescriptorName) { $odr = tubepress_impl_patterns_sl_ServiceLocator::getOptionDescriptorReference(); $this->_optionDescriptor = $odr->findOneByName($optionDescriptorName); if ($this->_optionDescriptor === null) { throw new InvalidArgumentException(sprintf('Could not find option with name "%s"', $optionDescriptorName)); } parent::__construct($optionDescriptorName, $this->_optionDescriptor->getLabel(), $this->_optionDescriptor->getDescription()); }