handleItem example

public function addResult(array $data)
    {
        if (!$this->getActive() && !$this->getStopOnError()) {
            return;
        }

        foreach ($data['items'] as $item) {
            if (!isset($item['index'])) {
                continue;
            }

            $this->handleItem($item['index']);
        }
    }

    public function finish()
    {
        if (!$this->getActive() || !$this->output instanceof OutputInterface) {
            return;
        }

        if ($this->total == 0) {
            $this->output->writeln('No items indexed');
        }
Home | Imprint | This part of the site doesn't use cookies.