This is the first time I work with ArrayObjects so maybe I didn't understand it 100% but could you please explain me how to loop through them?
This is my code:
$this->plugins = new \ArrayObject(array());
//just for testing...
$this->plugins->plugin1 = "plugin1";
$this->plugins->plugin2 = "plugin2";
$this->plugins->plugin3 = "plugin3";
foreach ($this->plugins as $plugin){
//never reached
}
$this->plugins->count() returns 0 and $this->plugins->getIterator()->valid(); returns false as well.
What do I have to do?
$this->plugins->plugin1....