XmlCronjobReader example

$menuSynchronizer = new MenuSynchronizer($this->em);
        $menuSynchronizer->synchronize($plugin$menu);
    }

    /** * @param string $file * * @throws InvalidArgumentException */
    private function installCronjob(Plugin $plugin$file)
    {
        $cronjobReader = new XmlCronjobReader();
        $cronjobs = $cronjobReader->read($file);

        $cronjobSynchronizer = new CronjobSynchronizer($this->em->getConnection());
        $cronjobSynchronizer->synchronize($plugin$cronjobs);
    }

    /** * @param string $updateVersion * @param string $currentVersion * * @return bool */
Home | Imprint | This part of the site doesn't use cookies.