Skip to content

Commit

Permalink
Feature: Support the new services layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed May 11, 2021
1 parent 4aee070 commit 81ed7d1
Show file tree
Hide file tree
Showing 29 changed files with 411 additions and 331 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php
php:
- '7.3'
- '7.4'
- '8.0'

before_script:
- composer install
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.1.0 - 2021-05-11
### Added
- Support the new services layer.

## 1.0.0 - 2020-11-09
### Added
- The initial implementation of the package.

# Versions
- [1.0.0 > Unreleased](https://github.com/ulrack/aop-extension/compare/1.0.0...HEAD)
- [1.1.0 > Unreleased](https://github.com/ulrack/aop-extension/compare/1.1.0...HEAD)
- [1.0.0 > 1.1.0](https://github.com/ulrack/aop-extension/compare/1.0.0...1.1.0)
27 changes: 13 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@
"prefer-stable": true,
"minimum-stability": "stable",
"require": {
"php": "^7.3",
"grizz-it/ast": "^1.2",
"grizz-it/cache": "^1.0",
"grizz-it/configuration": "^1.2",
"grizz-it/php-ast-generator": "^1.1",
"grizz-it/storage": "^1.0",
"grizz-it/task": "^1.0",
"grizz-it/vfs": "^1.0",
"ulrack/command": "^2.0",
"ulrack/invocation-extension": "^1.1",
"ulrack/kernel": "^1.3",
"ulrack/services": "^3.3"
"php": "^8.0",
"grizz-it/ast": "^1.3",
"grizz-it/cache": "^1.1",
"grizz-it/command": "^1.0",
"grizz-it/configuration": "^1.3",
"grizz-it/php-ast-generator": "^1.2",
"grizz-it/services": "^1.0",
"grizz-it/storage": "^1.1",
"grizz-it/task": "^1.1",
"grizz-it/vfs": "^1.1",
"ulrack/kernel": "^2.0"
},
"authors": [
{
Expand Down Expand Up @@ -60,7 +59,7 @@
]
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"squizlabs/php_codesniffer": "^3.5"
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6"
}
}
5 changes: 0 additions & 5 deletions configuration/configuration/advices.configuration.json

This file was deleted.

5 changes: 0 additions & 5 deletions configuration/configuration/join-points.configuration.json

This file was deleted.

5 changes: 0 additions & 5 deletions configuration/configuration/pointcuts.configuration.json

This file was deleted.

21 changes: 0 additions & 21 deletions configuration/invocations/aop-core.json

This file was deleted.

14 changes: 14 additions & 0 deletions configuration/schema/advices.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$id": "advices.schema.json",
"type": "object",
"properties": {
"service": {
"type": "string"
},
"hook": {
"type": "string",
"enum": ["before", "around", "after"]
}
},
"required": ["service", "hook"]
}
34 changes: 34 additions & 0 deletions configuration/schema/join-points.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$id": "join-points.schema.json",
"type": "object",
"oneOf": [
{
"properties": {
"service": {
"type": "string",
"pattern": "^[\\.\\w-]+$"
},
"method": {
"type": "string"
}
},
"required": ["service", "method"]
},
{
"properties": {
"class": {
"type": "string",
"pattern": "^(\\\\[A-z0-9]+)+$"
},
"method": {
"type": "string"
},
"explicit": {
"type": "boolean",
"default": false
}
},
"required": ["class", "method"]
}
]
}
17 changes: 17 additions & 0 deletions configuration/schema/pointcuts.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$id": "pointcuts.schema.json",
"type": "object",
"properties": {
"join-point": {
"type": "string"
},
"advice": {
"type": "string"
},
"sortOrder": {
"type": "integer",
"default": 1000
}
},
"required": ["join-point", "advice"]
}
19 changes: 0 additions & 19 deletions configuration/service-compiler-extensions/advices.extension.json

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions configuration/service-compiler-extensions/pointcuts.extension.json

This file was deleted.

6 changes: 0 additions & 6 deletions configuration/service-factory-hooks/proxy-hook.json

This file was deleted.

16 changes: 0 additions & 16 deletions configuration/services/aop-commands.json

This file was deleted.

Loading

0 comments on commit 81ed7d1

Please sign in to comment.