Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

More aliases, fewer factories #11

Merged
merged 2 commits into from
Jan 21, 2016

Conversation

weierophinney
Copy link
Member

  • Aliases typically need to be in each of:
    • lowercase
    • camelCase
    • TitleCase
  • Factories mapping to the InvokableFactory must be FQCNs only. The normalized version used in v2 (stripping special characters and lowercasing) will likely never be used to retrieve a service, and can be skipped.

- Aliases typically need to be in each of:
  - lowercase
  - camelCase
  - TitleCase
- Factories mapping to the `InvokableFactory` *must* be FQCNs *only*. The
  normalized version used in v2 (stripping special characters and lowercasing)
  will likely never be used to retrieve a service, and can be skipped.
@weierophinney
Copy link
Member Author

This improves on #8, which has already been merged.

@weierophinney weierophinney added this to the 2.6.0 milestone Jan 19, 2016
@weierophinney
Copy link
Member Author

Ping @ezimuel .

For alias lookup to factories, the alias target name is canonicalized in order
to do the lookup, though the denormalized alias target name is passed as the
requested name. As a result, we need to provide factory mappings of the
canonicalized name => invokable factory.
@weierophinney
Copy link
Member Author

@ezimuel Okay, works now! We need to update the migration wiki page to indicate that:

  • Aliases should be created for plugins using each of the forms:
    • lowercase
    • camelCase
    • TitleCase
  • InvokableFactory entries for plugins need to be created using each of the forms:
    • FQCN
    • Normalized version of FQCN (lowercase, no separators)

@ezimuel
Copy link
Contributor

ezimuel commented Jan 21, 2016

@weierophinney Ok, I just updated the ZF3 Wiki migration page - phase 2 with all the aliases and InvokableFactory to check.

ezimuel added a commit that referenced this pull request Jan 21, 2016
@ezimuel ezimuel merged commit 9ce0b37 into zendframework:develop Jan 21, 2016
@weierophinney weierophinney deleted the hotfix/aliases branch February 2, 2016 23:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants