Essence\Di\Container::set PHP Method

set() public method

Sets the value of the given property.
public set ( string $property, mixed $value )
$property string Property name.
$value mixed New value.
    public function set($property, $value)
    {
        $this->_properties[$property] = $value;
        return $this;
    }

Usage Example

 /**
  *
  */
 public function setUp()
 {
     $this->Provider = new StdClass();
     $Container = new Container();
     $Container->set('Foo', $this->Provider);
     $Container->set('filters', ['Foo' => '~^foo$~', 'Bar' => function ($url) {
         return $url === 'bar';
     }]);
     $this->Collection = new Collection($Container);
 }
All Usage Examples Of Essence\Di\Container::set