src/mg/Ding/Aspect/AspectManager.php
public function setAspect(AspectDefinition $aspect)
    {
        $name = $aspect->getName();
        $this->_aspects[$name] = $aspect;
        $this->_cache->store('AspectManagerAspect' . $name, $aspect);
        $this->_cache->store('Aspects', $this->_aspects);
    }
public function setAspect(AspectDefinition $aspect)
    {
        $name = $aspect->getName();
        $this->_aspects[$name] = $aspect;
        $this->_cache->store('AspectManagerAspect' . $name, $aspect);
        $this->_cache->store('Aspects', $this->_aspects);
    }
Adds or overwrites the given aspect.

@param AspectDefinition $aspect Aspect.

@return void