Skip to content

Commit c9d3583

Browse files
committed
updated package dependencies and php version
1 parent 737cc3b commit c9d3583

5 files changed

Lines changed: 50 additions & 32 deletions

File tree

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
clover.xml
2+
coveralls-upload.json
3+
phpunit.xml
4+
15
# Created by .ignore support plugin (hsz.mobi)
26
### JetBrains template
37
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
48
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
59

6-
# User-specific stuff:
10+
# Admin-specific stuff:
711
.idea
812

913
## File-based project format:
@@ -25,10 +29,11 @@ com_crashlytics_export_strings.xml
2529
crashlytics.properties
2630
crashlytics-build.properties
2731
fabric.properties
32+
2833
### Composer template
2934
composer.phar
3035
/vendor/
3136

3237
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
3338
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
34-
composer.lock
39+
composer.lock

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 3.0.0 - 2020-05-08
2+
3+
### Changed
4+
* Updated package dependencies and php version.
5+
6+
### Added
7+
* Nothing
8+
9+
### Deprecated
10+
* Nothing
11+
12+
### Removed
13+
* Nothing
14+
15+
### Fixed
16+
* Nothing
17+
18+
119
## 2.0.0 - 2020-01-30
220

321
### Changed

LICENSE.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
MIT License
22

3-
Copyright (c) 2016 DotKernel
3+
Copyright (c) 2020 Apidemia
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
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:
116

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
9+
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.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dot-controller
22

3-
This package contains controller like middleware to be used inside a DotKernel or Expressive application. It provides base classes for action based controllers similar to ZF3 controller component. It is more lightweight though, but supports controller plugins.
3+
This package contains controller like middleware to be used inside a DotKernel or Mezzio application. It provides base classes for action based controllers similar to Laminas controller component. It is more lightweight though, but supports controller plugins.
44

55
## Installation
66

@@ -13,7 +13,7 @@ Merge the `ConfigProvider` to your configuration aggregate.
1313
## Usage
1414

1515
Middleware controllers act as a handler for multiple routes. Some conventions were made:
16-
- register controllers in the routes array just like any expressive middleware. The requirement is that you should define an `action` route parameter(possibly optional) anywhere inside the route(e.g `/user[/{action}]`)
16+
- register controllers in the routes array just like any mezzio middleware. The requirement is that you should define an `action` route parameter(possibly optional) anywhere inside the route(e.g `/user[/{action}]`)
1717
- action parameter value is converted to a method name inside the controller. Underscore, dot and line characters are removed and the action name is converted to camel-case suffixed by the string `Action`. For example a route and action pair like `/user/forgot-password` will be converted to method `forgotPasswordAction`.
1818
- the default action value, if not present in the URI is `index`, so you should always define an `indexAction` within your controllers for displaying a default page or redirecting.
1919

@@ -41,7 +41,7 @@ class UserController extends AbstractActionController
4141
}
4242
```
4343

44-
Then register this controller as a routed middleware in file `routes.php` just like a regular middleware.
44+
Then register this controller as a routed middleware in file `RoutesDelegator.php` just like a regular middleware.
4545

4646
### Multiple controllers for the same route
4747

@@ -54,7 +54,7 @@ If this is the last controller, and action does not match here, it will go to th
5454

5555
## Controller plugins
5656

57-
Controllers support controller plugins, much like controllers in a ZF3 application. The module comes packed with a few common plugins, but you can extend controller functionality with your own plugins too.
57+
Controllers support controller plugins, much like controllers in a Laminas application. The module comes packed with a few common plugins, but you can extend controller functionality with your own plugins too.
5858

5959
### Usage
6060

@@ -73,11 +73,11 @@ $this->testPlugin()->someMethod();
7373
```
7474

7575
### Built-in plugins
76-
Note: Each of these plugins requires the associated ZE packages to be installed and available in your project.
76+
Note: Each of these plugins requires the associated Mezzio packages to be installed and available in your project.
7777
Although these are optional, if a package is missing, the controller will not have the associated functionality available
7878

79-
- `template` wraps TemplateInterface provided by ZE, to make template engine accessible to any controller
80-
- `url` wraps the UrlHelper class provided by ZE helpers package. Used to generate URIs from routes
79+
- `template` wraps TemplateInterface provided by Mezzio, to make template engine accessible to any controller
80+
- `url` wraps the UrlHelper class provided by Laminas helpers package. Used to generate URIs from routes
8181

8282

8383
## Controller Events

composer.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,31 @@
33
"type": "library",
44
"description": "DotKernel controller like middleware component with plugin support",
55
"license": "MIT",
6+
"keywords": [
7+
"controller",
8+
"plugin",
9+
"laminas",
10+
"mezzio",
11+
"service-manager"
12+
],
613
"authors": [
714
{
815
"name": "dotkernel",
916
"email": "team@dotkernel.com"
1017
}
1118
],
1219
"require": {
13-
"php": "^7.2",
20+
"php": "^7.4",
1421
"psr/http-message": "^1.0",
15-
"laminas/laminas-servicemanager": "^3.3.0",
16-
"dotkernel/dot-event": "^2.0",
22+
"laminas/laminas-servicemanager": "^3.4",
23+
"dotkernel/dot-event": "^3.0",
1724
"laminas/laminas-dependency-plugin": "^1.0"
1825
},
1926
"require-dev": {
20-
"mezzio/mezzio-template": "^1.0",
21-
"mezzio/mezzio-helpers": "^4.0",
22-
"phpunit/phpunit": "^4.8",
23-
"squizlabs/php_codesniffer": "^2.3"
27+
"mezzio/mezzio-template": "^2.0",
28+
"mezzio/mezzio-helpers": "^5.3",
29+
"phpunit/phpunit": "^9.1",
30+
"squizlabs/php_codesniffer": "^3.5"
2431
},
2532
"autoload": {
2633
"psr-4": {

0 commit comments

Comments
 (0)