Skip to content

Commit

Permalink
bind deprecated interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jun 24, 2019
1 parent cf37388 commit 43cd2cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SqlQueryModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Ray\Query;

use Ray\Di\AbstractModule;
use Ray\Query\Annotation\AliasQuery;
use Ray\Query\Annotation\Query;

class SqlQueryModule extends AbstractModule
Expand Down Expand Up @@ -51,10 +52,11 @@ protected function configure()
$this->matcher->annotatedWith(Query::class),
[QueryInterceptor::class]
);
// <=0.4.0
$this->bindInterceptor(
$this->matcher->any(),
$this->matcher->annotatedWith(Query::class),
[QueryInterceptor::class]
$this->matcher->annotatedWith(AliasQuery::class),
[SqlAliasInterceptor::class]
);
}

Expand Down

0 comments on commit 43cd2cc

Please sign in to comment.