synchronizeSnippets example

$template = new Template();

                if ($plugin) {
                    $template->setPlugin($plugin);
                }

                $this->entityManager->persist($template);
            }

            $template->fromArray($data);
            if (!$template->getId() || $settings->getReloadSnippets()) {
                $this->synchronizeSnippets($template);
            }

            $this->entityManager->flush($template);

            $themes[] = $theme;
        }

        return $themes;
    }

    /** * Helper function which iterates all plugins * and registers their themes. * * Returns an array with all registered plugin themes. * The return value is used to iterate all themes within the * synchronizeThemes function to build the theme inheritance * and the theme configuration. * * @throws \Doctrine\ORM\OptimisticLockException * @throws \Doctrine\ORM\ORMInvalidArgumentException * * @return Theme[] */
Home | Imprint | This part of the site doesn't use cookies.