phlexible / sitemap-bundle
phlexible sitemap bundle
Installs: 93
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6.0
- phlexible/siteroot-bundle: ~1.3
- phlexible/tree-bundle: ~1.3
- thepixeldeveloper/sitemap: ^4.4.2
Requires (Dev)
- doctrine/collections: ^1.3
- matthiasnoback/symfony-config-test: ^2.0
- matthiasnoback/symfony-dependency-injection-test: ^1.0
- mikey179/vfsstream: ^1.6
- phlexible/country-context-bundle: ~1.2
- phpunit/phpunit: ^5.6
- symfony/config: ^2.8
- symfony/console: ^2.8
- symfony/dependency-injection: ^2.8
- symfony/http-kernel: ^2.8
README
The PhlexibleSitemapBundle adds support for a finder field in phlexible.
Installation
- Download PhlexibleSitemapBundle using composer
- Enable the Bundle
- Import PhlexibleSitemapBundle routing
- Clear the symfony cache
Step 1: Download PhlexibleSitemapBundle using composer
Add PhlexibleSitemapBundle by running the command:
$ php composer.phar require phlexible/sitemap-bundle "~1.0.0"
Composer will install the bundle to your project's vendor/phlexible
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\SitemapBundle\PhlexibleSitemapBundle(), ); }
Step 3: Import PhlexibleSitemapBundle routing
Import the PhlexibleSitemapBundle routing.
For frontend:
# app/config/routing.yml phlexible_sitemap: resource: "@PhlexibleSitemapBundle/Controller/SitemapController.php" type: annotation
Step 4: Clear the symfony cache
If you access your phlexible application with environment prod, clear the cache:
$ php app/console cache:clear --env=prod