BrauneDigitalGeoBundle
Symfony Bundle providing integregation for geonames.org and administration in SonataAdmin., (*1)
Features
- Administration in SonataAdmin
- Sync Countries and Cities with Geonames.org
Requirements
- JMSSerializerBundle
- BrauneDigitalTranslationBaseBundle
- SonataAdminBundle
- DoctrineORM
Installation
Download using composer:, (*2)
composer require braune-digital/geo-bundle
And enable the Bundle in your AppKernel:, (*3)
public function registerBundles()
{
$bundles = array(
...
new JMS\SerializerBundle\JMSSerializerBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new BrauneDigital\TranslationBaseBundle\BrauneDigitalTranslationBaseBundle,
new BrauneDigital\GeoBundle\BrauneDigitalGeoBundle(),
...
);
Configuration
This Bundle needs the parameter geonames_user
, to authenticate the geonames api calls., (*4)
Extend the bundle
This Bundle relies on the Extension in the Application-Namespace. Easiset way is to use the SonataEasyExtendsBundle. Just run:, (*5)
php app/console sonata:easy-extends:generate --dest=src BrauneDigitalGeoBundle
And add the extended Bundle to your Kernel:, (*6)
public function registerBundles()
{
$bundles = array(
...
new Application\BrauneDigital\GeoBundle\BrauneDigitalGeoBundle(),
...
);