diff --git a/src/SqlQueryModule.php b/src/SqlQueryModule.php index 57cf5d4..bd990c7 100644 --- a/src/SqlQueryModule.php +++ b/src/SqlQueryModule.php @@ -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 @@ -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] ); }