commit 7f9ad0d84e4d09866d947d6d2adb44d9a89eb992
parent d8e10030866f93c0f9b13ff9ad997ebd7506e116
Author: Felicitus <felicitus@felicitus.org>
Date: Thu, 5 Feb 2015 17:14:31 +0100
Reorganized kernel bundles
Diffstat:
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/app/AppKernel.php b/app/AppKernel.php
@@ -44,6 +44,7 @@ class AppKernel extends Kernel
public function registerBundles()
{
+ // Base 3rd party bundles required for PartKeepr operation
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
@@ -55,18 +56,19 @@ class AppKernel extends Kernel
new JMS\SerializerBundle\JMSSerializerBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
-
- new PartKeepr\FrontendBundle\PartKeeprFrontendBundle(),
-
- new PartKeepr\SiPrefixBundle\PartKeeprSiPrefixBundle()
);
+ // Developer bundles
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
+ // PartKeepr bundles
+ $bundles[] = new PartKeepr\FrontendBundle\PartKeeprFrontendBundle();
+ $bundles[] = new PartKeepr\SiPrefixBundle\PartKeeprSiPrefixBundle();
+
return $bundles;
}
diff --git a/app/SymfonyRequirements.php b/app/SymfonyRequirements.php
@@ -578,8 +578,8 @@ class SymfonyRequirements extends RequirementCollection
$this->addRecommendation(
class_exists('DomDocument'),
- 'PHP-XML module should be installed',
- 'Install and enable the <strong>PHP-XML</strong> module.'
+ 'PHP-DOM and PHP-XML modules should be installed',
+ 'Install and enable the <strong>PHP-DOM</strong> and the <strong>PHP-XML</strong> modules.'
);
$this->addRecommendation(