wxr / geo-bundle
Symfony WXRGeoBundle
Installs: 68
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- jms/serializer-bundle: 0.*
- sonata-project/easy-extends-bundle: *
- symfony/framework-bundle: 2.1.*
- wxr/common-bundle: 1.0.*
This package is not auto-updated.
Last update: 2024-04-13 11:08:24 UTC
README
Installation
Composer
"wxr/geo-bundle": "dev-master"
$ composer update
AppKernel (1)
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(), new WXR\CommonBundle\WXRCommonBundle(), new WXR\GeoBundle\WXRGeoBundle(),
SonataEasyExtendsBundle
$ php app/console sonata:easy-extends:generate WXRGeoBundle --dest=src
AppKernel (2)
new Application\WXR\GeoBundle\ApplicationWXRGeoBundle(),
Routing (optional)
# app/config/routing.yml wxr_geo: resource: "@WXRGeoBundle/Resources/config/routing.yml" prefix: /geo
Useful for autocompletion.
Google Map API (optional)
Override SonataAdminBundle::standard_layout.html.twig
to import Google Map API.
<!-- Google Maps API --> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=false"></script>
Latitude and longitude will be automatically retrieved trough geocoding.js.
Configuration
WXRGeoBundle doesn't require any configuration.
Default configuration
wxr_geo: translation_domain: WXRGeoBundle country: manager: wxr_geo.country.manager.default admin: class: WXR\GeoBundle\Admin\Entity\CountryAdmin controller: SonataAdminBundle:CRUD region: manager: wxr_geo.region.manager.default admin: class: WXR\GeoBundle\Admin\Entity\RegionAdmin controller: SonataAdminBundle:CRUD city: manager: wxr_geo.city.manager.default admin: class: WXR\GeoBundle\Admin\Entity\CityAdmin controller: SonataAdminBundle:CRUD address: manager: wxr_geo.address.manager.default admin: class: WXR\GeoBundle\Admin\Entity\AddressAdmin controller: SonataAdminBundle:CRUD