protected function decorateService($service)
    {
        $extName = DecorateExtension::EXTENSION_CLASS;

        // decorate extension loaded
        if ($this->hasExtension($extName)) {
            /* @var $ext DecorateExtension */
            $ext = $this->getExtension($extName);
            $ext->decorateService($service);
        }

        return $this;
    }
protected function decorateService($service)
    {
        $extName = DecorateExtension::EXTENSION_CLASS;

        // decorate extension loaded
        if ($this->hasExtension($extName)) {
            /* @var $ext DecorateExtension */
            $ext = $this->getExtension($extName);
            $ext->decorateService($service);
        }

        return $this;
    }
protected function decorateService ( $ service ) { $ extName = DecorateExtension :: EXTENSION_CLASS ; // decorate extension loaded if ( $ this -> hasExtension ( $ extName ) ) { /* @var $ext DecorateExtension */ $ ext = $ this -> getExtension ( $ extName ) ; $ ext -> decorateService ( $ service ) ; } return $ this ; }
Decorate the service object if DecorateExtension loaded

@param  object $service
@return self
@throws LogicException if something goes wrong
@access protected
Decorate the service object if DecorateExtension loaded