-
Notifications
You must be signed in to change notification settings - Fork 351
Rename PropertiesXmlParser to DeprecatedPropertiesXmlParser #7939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename PropertiesXmlParser to DeprecatedPropertiesXmlParser #7939
Conversation
fdf2525
to
95b082f
Compare
95b082f
to
780ef13
Compare
/** | ||
* @template T of mixed | ||
* | ||
* @param T $default | ||
* | ||
* @return T|bool|int|string|null | ||
*/ | ||
private function getValueFromXPath(string $path, \DOMXPath $xpath, ?\DOMNode $context = null, $default = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improved the PHP Typing here the trait is already internal so needs not documentation in upgrade
@@ -31,7 +31,7 @@ class FormXmlLoader extends AbstractLoader | |||
public const SCHEMA_NAMESPACE_URI = 'http://schemas.sulu.io/template/template'; | |||
|
|||
public function __construct( | |||
private PropertiesXmlParser $propertiesXmlParser, | |||
private DeprecatedPropertiesXmlParser $propertiesXmlParser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we will do a rewrite of DeprecatedPropertiesXmlParser
to PropertiesXmlParser
which will directly return new metadata instead of the old one.
@@ -74,7 +74,7 @@ class StructureXmlLoader extends AbstractLoader | |||
*/ | |||
public function __construct( | |||
private CacheLifetimeResolverInterface $cacheLifetimeResolver, | |||
private PropertiesXmlParser $propertiesXmlParser, | |||
private DeprecatedPropertiesXmlParser $propertiesXmlParser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the whole service will later be removed after Form and Template loader are implemented.
@Prokyonn FYI |
What's in this PR?
Rename PropertiesXmlParser to DeprecatedPropertiesXmlParser.
Why?
This let me implement a new
PropertiesXmlParser
which is used forFormXmlLoader
without have to refactor also theStructureXmlLoader
.