Skip to content

Commit

Permalink
Rewrite of the project using native Attributes instead of annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
zluiten committed Aug 16, 2021
1 parent c3659ff commit 1c12183
Show file tree
Hide file tree
Showing 59 changed files with 764 additions and 1,573 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Next up you need to create a configuration class `MyConfiguration` and document
```php
<?php

use bitExpert\Disco\Annotations\Configuration;
use bitExpert\Disco\Attributes\Configuration;

/**
* @Configuration
Expand All @@ -48,8 +48,8 @@ Doing this registers the instance with Disco and uses the type specified by the
```php
<?php

use bitExpert\Disco\Annotations\Bean;
use bitExpert\Disco\Annotations\Configuration;
use bitExpert\Disco\Attributes\Bean;
use bitExpert\Disco\Attributes\Configuration;
use bitExpert\Disco\Helper\SampleService;

/**
Expand Down
10 changes: 6 additions & 4 deletions Upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ Disco 0.5.0 dropped support for the @return annotations and strictly
relies on the return type definitions now.

While this was valid configuration code before the 0.5.0 release:

```php
<?php

use bitExpert\Disco\Annotations\Bean;
use bitExpert\Disco\Annotations\Configuration;
use bitExpert\Disco\Attributes\Bean;
use bitExpert\Disco\Attributes\Configuration;
use bitExpert\Disco\Helper\SampleService;

/**
Expand All @@ -96,11 +97,12 @@ class MyConfiguration
```

This is how you have to define bean instances for the 0.5.0 release:

```php
<?php

use bitExpert\Disco\Annotations\Bean;
use bitExpert\Disco\Annotations\Configuration;
use bitExpert\Disco\Attributes\Bean;
use bitExpert\Disco\Attributes\Configuration;
use bitExpert\Disco\Helper\SampleService;

/**
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"require": {
"php": "^8.0.0",
"psr/container": "^1.1.1",
"doctrine/annotations": "^1.12.1",
"bitexpert/slf4psrlog": "^0.1.3",
"ocramius/proxy-manager": "^2.11.1",
"bitexpert/slf4psrlog": "^0.1.3"
"psr/container": "^1.1.1",
"webmozart/assert": "^1.10"
},
"require-dev": {
"bookdown/bookdown": "@dev",
Expand Down
Loading

0 comments on commit 1c12183

Please sign in to comment.