TimezoneBundle
The TimezoneBundle adds support for guessing a appropiate Timezone serverside in your Symfony 2.1 application.
About
This Bundle offers Timezone detection via a Kernel-listener.
Also included is a TimezoneValidator.
Included are 3 TimezoneGuessers
- geoip
- locale_mapper
- locale
You can define the order of which guesser should be called first.
Once a guesser finds a appropiate timezone, the timezone will be stored in the session variable lunetics_timezone.
Requirements
To use the geoip guesser and the locale guesser, the pecl-geoip extension must be installed and working.
Documentation
Installation
License
This bundle is under the MIT license.
Authors
Matthias Breddin : @lunetics
Copyright (c) 2012 Matthias Breddin <mb@lunetics.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
lunetics_timezone:
session_var: lunetics_timezone
guesser:
manager:
class: Lunetics\TimezoneBundle\TimezoneGuesser\TimezoneGuesserManager
listener:
class: Lunetics\TimezoneBundle\EventListener\TimezoneListener
order: [] # Required
service:
geo:
class: Lunetics\TimezoneBundle\TimezoneGuesser\GeoTimezoneGuesser
locale_mapper:
class: Lunetics\TimezoneBundle\TimezoneGuesser\LocalemapperTimezoneGuesser
locale:
class: Lunetics\TimezoneBundle\TimezoneGuesser\LocaleTimezoneGuesser
-
fix typo
By erivello, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago
-
Merge pull request #5 from erivello/patch-1
By lunetics, 1 month ago

