Skip to content

Commit

Permalink
Add attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jan 15, 2021
1 parent fc6b901 commit 8ec3c2f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<file>src</file>
<file>tests</file>
<exclude-pattern>*/tests/tmp/*</exclude-pattern>
<exclude-pattern>*/src/Annotation/*</exclude-pattern>
<exclude-pattern>*/src/Inject/*</exclude-pattern>

<!-- PSR12 Coding Standard -->
<rule ref="PSR12"/>
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/DefaultSchemeHost.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

namespace BEAR\Sunday\Annotation;

use Attribute;
use Ray\Di\Di\Qualifier;

/**
* @Annotation
* @Target("METHOD")
* @Qualifier
*/
#[Attribute(Attribute::TARGET_METHOD), Qualifier]
final class DefaultSchemeHost
{
/** @var string */
Expand Down
2 changes: 2 additions & 0 deletions src/Inject/PsrLoggerInject.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace BEAR\Sunday\Inject;

use Psr\Log\LoggerInterface;
use Ray\Di\Di\Inject;

trait PsrLoggerInject
{
Expand All @@ -15,6 +16,7 @@ trait PsrLoggerInject
* @\Ray\Di\Di\Inject
* @codeCoverageIgnore
*/
#[Inject]
public function setPsrLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
Expand Down
2 changes: 2 additions & 0 deletions src/Inject/ResourceInject.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace BEAR\Sunday\Inject;

use BEAR\Resource\ResourceInterface;
use Ray\Di\Di\Inject;

trait ResourceInject
{
Expand All @@ -15,6 +16,7 @@ trait ResourceInject
* @\Ray\Di\Di\Inject
* @codeCoverageIgnore
*/
#[Inject]
public function setResource(ResourceInterface $resource): void
{
$this->resource = $resource;
Expand Down

0 comments on commit 8ec3c2f

Please sign in to comment.