Skip to content

Commit

Permalink
Merge pull request #151 from bearsunday/release
Browse files Browse the repository at this point in the history
Add attribute
  • Loading branch information
koriym authored Jan 15, 2021
2 parents fc6b901 + e967db5 commit b0cb012
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 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
24 changes: 12 additions & 12 deletions vendor-bin/tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0cb012

Please sign in to comment.