Skip to content

Commit 8556572

Browse files
authored
Merge pull request #22 from dotkernel/issue-21
updated packages
2 parents a3ea07b + 172f28c commit 8556572

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

OSSMETADATA

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
osslifecycle=active

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
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

5+
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-controller)
6+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-controller/3.2.0)
7+
8+
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-controller)](https://github.com/dotkernel/dot-controller/issues)
9+
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-controller)](https://github.com/dotkernel/dot-controller/network)
10+
[![GitHub stars](https://img.shields.io/github/stars/dotkernel/dot-controller)](https://github.com/dotkernel/dot-controller/stargazers)
11+
[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-controller)](https://github.com/dotkernel/dot-controller/blob/3.0/LICENSE.md)
12+
513
## Installation
614

715
Run the following composer command in your project directory
@@ -58,7 +66,7 @@ Controllers support controller plugins, much like controllers in a Laminas appli
5866

5967
### Usage
6068

61-
Controller plugins must implement `Dot\Controller\Plugin\PluginInterface`. You can add them to the config file, at key `['dk_controller']['plugin_manager']`. The design pattern uses the `AbstractPluginManager` provided by ZF3 service manager component. So, registration of a plugin under the aforementioned config key looks the same as the declaration of regular dependencies, as `AbstractPluginManager` actually extends `ServiceManager`.
69+
Controller plugins must implement `Dot\Controller\Plugin\PluginInterface`. You can add them to the config file, at key `['dk_controller']['plugin_manager']`. The design pattern uses the `AbstractPluginManager` provided by Laminas service manager component. So, registration of a plugin under the aforementioned config key looks the same as the declaration of regular dependencies, as `AbstractPluginManager` actually extends `ServiceManager`.
6270

6371
Once registered, a plugin can be directly accessed in any controller, by calling a method with the plugin's name(the service name or the key at which the plugin is registered inside the manager)
6472

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4",
22-
"psr/http-message": "^1.0",
23-
"laminas/laminas-servicemanager": "^3.4",
24-
"dotkernel/dot-event": "^3.0",
25-
"laminas/laminas-dependency-plugin": "^2.0"
21+
"php": "^7.4 || ~8.0 || ~8.1",
22+
"psr/http-message": "^1.0.1",
23+
"laminas/laminas-servicemanager": "^3.11.2",
24+
"dotkernel/dot-event": "^3.2.0",
25+
"laminas/laminas-dependency-plugin": "^2.2.0"
2626
},
2727
"require-dev": {
28-
"mezzio/mezzio-template": "^2.0",
29-
"mezzio/mezzio-helpers": "^5.3",
30-
"phpunit/phpunit": "^9.1",
31-
"squizlabs/php_codesniffer": "^3.5"
28+
"mezzio/mezzio-template": "^2.4.0",
29+
"mezzio/mezzio-helpers": "^5.8.0",
30+
"phpunit/phpunit": "^9.5.20",
31+
"squizlabs/php_codesniffer": "^3.6.2"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)