Renamed configuration option cache
to path
.
Before
gpslab_geoip:
cache: '%kernel.cache_dir%/GeoLite2-City.mmdb'
After
gpslab_geoip:
path: '%kernel.cache_dir%/GeoLite2-City.mmdb'
Update composer.json
if you use composer event callbacks.
Before in Symfony <3.0
{
"scripts": {
"post-install-cmd": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
],
"post-update-cmd": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
]
}
}
Before in Symfony >3.1
{
"scripts": {
"symfony-scripts": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
]
}
}
After in Symfony >4
{
"scripts": {
"auto-scripts": {
"geoip2:update": "symfony-cmd"
}
}
}
The update database command (geoip2:update
) split into two separate commands.
geoip2:download
- command for download some not configured database from URL to specific path.geoip2:update
- command for update configured databases.
- The
gpslab.command.geoip2.update
service renamed toGpsLab\Bundle\GeoIP2Bundle\Command\DownloadDatabaseCommand
. - The
GpsLab\Bundle\GeoIP2Bundle\Command\UpdateDatabaseCommand
class renamed toGpsLab\Bundle\GeoIP2Bundle\Command\DownloadDatabaseCommand
. - The
geoip2:update
console command renamed togeoip2:download
.
- The
gpslab.geoip2.component.gzip
service removed. - The
ScriptHandler
removed.
- Require the
symfony/filesystem
package. - Require the
symfony/config
package. - The
symfony/http-kernel
package moved fromrequire-dev
torequire
. - The
symfony/dependency-injection
package moved fromrequire-dev
torequire
. - The
symfony/expression-language
package moved fromrequire-dev
torequire
. - The
symfony/console
package moved fromrequire-dev
torequire
.
- The
symfony/stopwatch
package removed from dependencies. - The
gpslab/compressor
package removed from dependencies. - The
scrutinizer/ocular
package removed from dependencies. - The
satooshi/php-coveralls
package removed from dependencies.