Skip to content

Commit

Permalink
Bump squirrelphp/queries dependency to 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
iquito committed Dec 5, 2021
1 parent 8c967ec commit aa88370
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ composer require squirrelphp/queries-bundle
Configuration
-------------

Enable the bundle in your AppKernel by adding `Squirrel\QueriesBundle\SquirrelQueriesBundle` to the list of bundles.
Enable the bundle in your project by adding `Squirrel\QueriesBundle\SquirrelQueriesBundle` to the list of bundles (usually in `config/bundles.php`).

Create a Symfony service for each of your Doctrine DBAL connections and tag it with squirrel.connection, for example like this:

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"symfony/dependency-injection": "^5.0|^6.0",
"symfony/http-kernel": "^5.0|^6.0",
"symfony/var-dumper": "^5.0|^6.0",
"squirrelphp/queries": "^0.13",
"squirrelphp/queries": "^1.0",
"jdorn/sql-formatter": "1.2.17"
},
"require-dev": {
Expand Down
5 changes: 3 additions & 2 deletions examples/SQLLogTemporaryFailuresListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ class SQLLogTemporaryFailuresListener implements DBRawInterface
// Default implementation of all DBRawInterface functions - pass to lower layer
use DBPassToLowerLayerTrait;

public function __construct(private LoggerInterface $logger)
{
public function __construct(
private LoggerInterface $logger,
) {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/SquirrelQueriesBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SquirrelQueriesBundle extends Bundle
public function build(ContainerBuilder $container): void
{
// Generate decorated database connections with compiler pass
// Priority (third argument) has to be higher than 0, otherwise ProfilerPass executes before us
// Priority (third argument) has to be higher than 0, otherwise ProfilerPass executes earlier than us
// and our DataCollector is not added to Symfony profiler (if it is active)
$container->addCompilerPass(new LayersPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
}
Expand Down

0 comments on commit aa88370

Please sign in to comment.