Skip to content

Commit

Permalink
Merge pull request #26 from 2lenet/sf-7
Browse files Browse the repository at this point in the history
mis à jour sf 7
  • Loading branch information
sebheitzmann authored Jun 7, 2024
2 parents f5a8c44 + 4c5713b commit 78ddc07
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"license": "MIT",
"require": {
"php": "^8.0",
"symfony/console": "^6.0",
"symfony/framework-bundle": "^6.0",
"symfony/http-kernel": "^6.0",
"symfony/console": "^6.0 || ^7.0",
"symfony/framework-bundle": "^6.0 || ^7.0",
"symfony/http-kernel": "^6.0 || ^7.0",
"doctrine/orm": "^2.15 || ^3.0",
"doctrine/doctrine-bundle": "^2.0",
"symfony/security-bundle": "^6.0",
"symfony/security-bundle": "^6.0 || ^7.0",
"doctrine/persistence": "^2.0 || ^3.0",
"symfony/translation": "^6.4",
"symfony/form": "^6.4",
"symfony/validator": "^6.4"
"symfony/translation": "^6.0 || ^7.0",
"symfony/form": "^6.0 || 7.0",
"symfony/validator": "^6.0 || 7.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/Command/CredentialWarmupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
use Symfony\Component\DependencyInjection\Attribute\AutowireIterator;

#[AsCommand(
name: 'credential:warmup',
Expand All @@ -16,7 +16,7 @@
class CredentialWarmupCommand extends Command
{
public function __construct(
#[TaggedIterator('credential.warmup')] protected iterable $warmuppers,
#[AutowireIterator('credential.warmup')] protected iterable $warmuppers,
private CacheItemPoolInterface $cache,
) {
parent::__construct();
Expand Down
8 changes: 3 additions & 5 deletions src/Repository/GroupCredentialRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ public function updateCredentials(int|Group $group, array $credentials, bool $al
->set('gc.allowed', ':allowed')
->andWhere('gc.groupe = :group')
->andWhere('gc.credential IN (:credentials)')
->setParameters([
'allowed' => $allowed,
'group' => $group,
'credentials' => $credentials,
])
->setParameter('allowed', $allowed)
->setParameter('group', $group)
->setParameter('credentials', $credentials)
->getQuery()
->execute();
}
Expand Down

0 comments on commit 78ddc07

Please sign in to comment.