private function getIterator() { if (null === $this->getPath()) { throw new \RuntimeException('Commands config path not set'); } if (null === $this->it) { $this->it = new \DirectoryIterator($this->getPath()); } return $this->it; }