-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/fix_deprecations' into 'release/2.3.0'
Fix deprecations and session See merge request metamodels/core!314
- Loading branch information
Showing
10 changed files
with
49 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
*/ | ||
|
@@ -30,6 +31,7 @@ | |
use MetaModels\CoreBundle\MetaModelsCoreBundle; | ||
use Symfony\Component\Config\Loader\LoaderResolverInterface; | ||
use Symfony\Component\HttpKernel\KernelInterface; | ||
use Symfony\Component\Routing\RouteCollection; | ||
|
||
/** | ||
* Plugin for the Contao Manager. | ||
|
@@ -39,7 +41,7 @@ class Plugin implements BundlePluginInterface, RoutingPluginInterface | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getBundles(ParserInterface $parser) | ||
public function getBundles(ParserInterface $parser): array | ||
{ | ||
return [ | ||
BundleConfig::create(MetaModelsCoreBundle::class) | ||
|
@@ -57,7 +59,7 @@ public function getBundles(ParserInterface $parser) | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel) | ||
public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel): ?RouteCollection | ||
{ | ||
if (false === ($resolved = $resolver->resolve(__DIR__ . '/../Resources/config/routing.yml'))) { | ||
return null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of MetaModels/core. | ||
* | ||
* (c) 2012-2023 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. | ||
|
@@ -16,7 +16,7 @@ | |
* @author David Molineus <[email protected]> | ||
* @author Cliff Parnitzky <[email protected]> | ||
* @author Ingolf Steinhardt <[email protected]> | ||
* @copyright 2012-2023 The MetaModels team. | ||
* @copyright 2012-2024 The MetaModels team. | ||
* @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later | ||
* @filesource | ||
*/ | ||
|
@@ -250,7 +250,7 @@ public function createMetaModel(CreateMetaModelEvent $event) | |
{ | ||
if ($event->getMetaModel() !== null) { | ||
/** @psalm-suppress DeprecatedMethod */ | ||
if (($metaModel = $event->getMetaModel()) instanceof ITranslatedMetaModel && $metaModel->isTranslated()) { | ||
if (!($metaModel = $event->getMetaModel()) instanceof ITranslatedMetaModel && $metaModel->isTranslated()) { | ||
// @codingStandardsIgnoreStart | ||
@\trigger_error( | ||
'Translated "\MetaModel\IMetamodel" instances are deprecated since MetaModels 2.2 ' . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters