Skip to content

Wildcard aliases#46

Open
goetas wants to merge 3 commits into
masterfrom
changes
Open

Wildcard aliases#46
goetas wants to merge 3 commits into
masterfrom
changes

Conversation

@goetas
Copy link
Copy Markdown
Member

@goetas goetas commented Dec 3, 2017

allow wildcard aliasing and aliasing of elements

Comment thread src/AbstractConverter.php
return $this->aliasCache[$cid] = call_user_func($this->typeAliases[$schema->getTargetNamespace()][$type->getName()], $type);
}

if (!empty($this->typeAliases[$schema->getTargetNamespace()])) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be moved to a private method and documented

Comment thread src/Jms/YamlConverter.php
$class = array();
$data = array();

if (($alias = $this->getTypeAlias($element))) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be moved to a private method as well

Comment thread src/Php/PhpConverter.php
$class->setName($this->getNamingStrategy()->getItemName($element));
$class->setDoc($element->getDoc());

if ($alias = $this->getTypeAlias($element)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here - private method to be added

@goetas goetas changed the title Changes Wildcard aliases Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants