src/Viserio/Component/Cron/Schedule.php
public function call($callback, array $parameters = []): CallbackCron
    {
        $cron = new CallbackCron($callback, $parameters);

        if ($this->cachePool !== null) {
            $cron->setCacheItemPool($this->getCacheItemPool());
        }

        $cron->setPath($this->workingDirPath);

        if ($this->container !== null) {
            $cron->setContainer($this->container);
        }

        $this->jobs[] = $cron;

        return $cron;
    }
public function call($callback, array $parameters = []): CallbackCron
    {
        $cron = new CallbackCron($callback, $parameters);

        if ($this->cachePool !== null) {
            $cron->setCacheItemPool($this->getCacheItemPool());
        }

        $cron->setPath($this->workingDirPath);

        if ($this->container !== null) {
            $cron->setContainer($this->container);
        }

        $this->jobs[] = $cron;

        return $cron;
    }
{@inheritdoc}