code/dispatcher/behavior/decoratable.php
public function addDecorator($identifier, $prepend = false)
    {
        if($prepend) {
            array_unshift($this->__decorators, $identifier);
        } else {
            array_push($this->__decorators, $identifier);
        }

        return $this;
    }
public function addDecorator($identifier, $prepend = false)
    {
        if($prepend) {
            array_unshift($this->__decorators, $identifier);
        } else {
            array_push($this->__decorators, $identifier);
        }

        return $this;
    }
public function addDecorator ( $ identifier , $ prepend = false ) { if ( $ prepend ) { array_unshift ( $ this -> __decorators , $ identifier ) ; } else { array_push ( $ this -> __decorators , $ identifier ) ; } return $ this ; }
Add a decorator

@param  string $identifier The decorator identifier
@param  bool $prepend      If true, the decorator will be prepended instead of appended.
@return DispatcherBehaviorDecoratable
Add a decorator