Skip to content

Comments

Wildcard aliases#46

Open
goetas wants to merge 3 commits intomasterfrom
changes
Open

Wildcard aliases#46
goetas wants to merge 3 commits intomasterfrom
changes

Conversation

@goetas
Copy link
Member

@goetas goetas commented Dec 3, 2017

allow wildcard aliasing and aliasing of elements

return $this->aliasCache[$cid] = call_user_func($this->typeAliases[$schema->getTargetNamespace()][$type->getName()], $type);
}

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

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

$class = array();
$data = array();

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

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

$class->setName($this->getNamingStrategy()->getItemName($element));
$class->setDoc($element->getDoc());

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

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