forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Task] Substitute
method exists
with interface check in field defin…
…itions (pimcore#13846) * added ClassSavedInterface to several classes, removed method_exists * Update AdvancedManyToManyRelation.php added $params parameter * Update models/DataObject/ClassDefinition/Data/Fieldcollections.php added BC layer Co-authored-by: Sebastian Blank <[email protected]> * Update Fieldcollections.php added comment to remove method_exists * added BC layer * Update models/DataObject/ClassDefinition/Data/Objectbricks.php Co-authored-by: Sebastian Blank <[email protected]> * Update models/DataObject/ClassDefinition/Data/Localizedfields.php Co-authored-by: Sebastian Blank <[email protected]> * passed parameters to classSaved function * removed interface from classes * removed interface from classes * Update models/DataObject/ClassDefinition/Data/Fieldcollections.php Co-authored-by: Sebastian Blank <[email protected]> * added upgrade notes * changed interface * added type * updated upgrade notes * added unknown parameter to ignore list * added unknown parameter to ignore list * fixed phpstan formatting * fixed phpstan formatting * changed condition order Co-authored-by: Sebastian Blank <[email protected]>
- Loading branch information
Showing
9 changed files
with
48 additions
and
13 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
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
14 changes: 14 additions & 0 deletions
14
models/DataObject/ClassDefinition/Data/ClassSavedInterface.php
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Pimcore\Model\DataObject\ClassDefinition\Data; | ||
|
||
use Pimcore\Model\DataObject; | ||
|
||
interface ClassSavedInterface | ||
{ | ||
/** | ||
* @param DataObject\ClassDefinition $class | ||
* @param array $params | ||
*/ | ||
public function classSaved($class/**, $params = [] **/); | ||
} |
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