src/Vectorface/SnappyRouter/Di/Di.php
public function set($key, $element)
    {
        // clear the cached element
        unset($this->elements[$key]);
        $this->elementMap[$key] = $element;
        return $this;
    }
public function set($key, $element)
    {
        // clear the cached element
        unset($this->elements[$key]);
        $this->elementMap[$key] = $element;
        return $this;
    }
public function set ( $ key , $ element ) { // clear the cached element unset ( $ this -> elements [ $ key ] ) ; $ this -> elementMap [ $ key ] = $ element ; return $ this ; }
Assigns a specific element to the given key. This method will override
any previously assigned element for the given key.
@param string $key The key for the specified element.
@param mixed $element The specified element. This can be an instance of the
element or a callback to be invoked.
@return Returns $this.
Assigns a specific element to the given key . This method will override any previously assigned element for the given key .