Skip to content

Commit

Permalink
Merge branch 'hotfix/fix_phpcq' into 'release/2.3.0'
Browse files Browse the repository at this point in the history
Fix PHPCQ

See merge request metamodels/core!342
  • Loading branch information
zonky2 committed Sep 25, 2024
2 parents 2d1daf7 + 0ddc2db commit 6a278bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,6 @@
*/
class AddAllButtonListener
{
/**
* The database.
*
* @var Connection
*/
private Connection $connection;

/**
* The MetaModels factory.
*
* @var IFactory
*/
private IFactory $factory;

/**
* The URL generator.
*
* @var UrlGeneratorInterface
*/
private UrlGeneratorInterface $urlGenerator;

/**
* The request stack.
*
* @var RequestStack
*/
private RequestStack $requestStack;

/**
* Create a new instance.
*
Expand All @@ -72,15 +44,11 @@ class AddAllButtonListener
* @param RequestStack $requestStack The session.
*/
public function __construct(
Connection $connection,
IFactory $factory,
UrlGeneratorInterface $urlGenerator,
RequestStack $requestStack
private readonly Connection $connection,
private readonly IFactory $factory,
private readonly UrlGeneratorInterface $urlGenerator,
private readonly RequestStack $requestStack
) {
$this->connection = $connection;
$this->factory = $factory;
$this->urlGenerator = $urlGenerator;
$this->requestStack = $requestStack;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,6 @@
*/
class AddAllButtonListener
{
/**
* The database.
*
* @var Connection
*/
private Connection $connection;

/**
* The MetaModels factory.
*
* @var IFactory
*/
private IFactory $factory;

/**
* The URL generator.
*
* @var UrlGeneratorInterface
*/
private UrlGeneratorInterface $urlGenerator;

/**
* The request stack.
*
* @var RequestStack
*/
private RequestStack $requestStack;

/**
* Create a new instance.
*
Expand All @@ -72,15 +44,11 @@ class AddAllButtonListener
* @param RequestStack $requestStack The session.
*/
public function __construct(
Connection $connection,
IFactory $factory,
UrlGeneratorInterface $urlGenerator,
RequestStack $requestStack
private readonly Connection $connection,
private readonly IFactory $factory,
private readonly UrlGeneratorInterface $urlGenerator,
private readonly RequestStack $requestStack
) {
$this->connection = $connection;
$this->factory = $factory;
$this->urlGenerator = $urlGenerator;
$this->requestStack = $requestStack;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Filter/Setting/SimpleLookupFilterSettingTypeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of MetaModels/core.
*
* (c) 2012-2019 The MetaModels team.
* (c) 2012-2024 The MetaModels team.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -13,7 +13,8 @@
* @package MetaModels/core
* @author Christian Schiffler <[email protected]>
* @author Sven Baumann <[email protected]>
* @copyright 2012-2019 The MetaModels team.
* @author Ingolf Steinhardt <[email protected]>
* @copyright 2012-2024 The MetaModels team.
* @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
*/
Expand All @@ -36,8 +37,7 @@ public function __construct(
private readonly EventDispatcherInterface $dispatcher,
private readonly FilterUrlBuilder $filterUrlBuilder,
private readonly TranslatorInterface $translator,
)
{
) {
parent::__construct();

$this
Expand Down

0 comments on commit 6a278bf

Please sign in to comment.