Skip to content

Commit

Permalink
Merge pull request #26 from peter-gribanov/remove_ScriptHandler
Browse files Browse the repository at this point in the history
Remove script handler
  • Loading branch information
peter-gribanov committed Jan 22, 2020
2 parents 373061a + cd0a6b8 commit 2646171
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 206 deletions.
53 changes: 50 additions & 3 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,60 @@
UPGRADE FROM 1.x to 2.0
=======================

### Renamed services
Update `composer.json` if you use composer vent callbacks.

* The `gpslab.command.geoip2.update` renamed to `GpsLab\Bundle\GeoIP2Bundle\Command\UpdateDatabaseCommand`.
Before in Symfony <3.0

### Removed service
```json
{
"scripts": {
"post-install-cmd": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
],
"post-update-cmd": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
]
}
}
```

Before in Symfony >3.1

```json
{
"scripts": {
"symfony-scripts": [
"GpsLab\\Bundle\\GeoIP2Bundle\\Composer\\ScriptHandler::updateDatabase"
]
}
}
```

After in Symfony >4

```json
{
"scripts": {
"auto-scripts": {
"geoip2:update": "symfony-cmd"
}
}
}
```

### Dependencies

* The `UpdateDatabaseCommand` command not dependency a `CompressorInterface`.

### Renamed


* The `gpslab.command.geoip2.update` service renamed to `GpsLab\Bundle\GeoIP2Bundle\Command\UpdateDatabaseCommand`.

### Removed

* The `gpslab.geoip2.component.gzip` service removed.
* The `ScriptHandler` removed.

Updating Dependencies
---------------------
Expand Down
203 changes: 0 additions & 203 deletions src/Composer/ScriptHandler.php

This file was deleted.

0 comments on commit 2646171

Please sign in to comment.