Page MenuHomePhabricator

AutoloadNamespaces in extension.json should not require a slash at the end of the path
Closed, ResolvedPublic

Description

If the developer does not end the paths provided in AutoloadNamespaces then the following un-informative error is given:

Fatal error: Uncaught InvalidArgumentException: Invalid callback 'Namespace\Class::method'

Slashes should be added by default to the path

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 20 2018, 2:46 PM

Change 434186 had a related patch set uploaded (by MarkAHershberger; owner: MarkAHershberger):
[mediawiki/core@master] Add slashes for AutoloadNamespaces

https://gerrit.wikimedia.org/r/434186

Change 434186 merged by jenkins-bot:
[mediawiki/core@master] Don't require trailing slash in PSR-4 autoloader directory

https://gerrit.wikimedia.org/r/434186

Legoktm closed this task as Resolved.May 20 2018, 7:01 PM
Legoktm assigned this task to MarkAHershberger.

Change 434218 had a related patch set uploaded (by Legoktm; owner: MarkAHershberger):
[mediawiki/core@REL1_31] Don't require trailing slash in PSR-4 autoloader directory

https://gerrit.wikimedia.org/r/434218

Change 434218 merged by jenkins-bot:
[mediawiki/core@REL1_31] Don't require trailing slash in PSR-4 autoloader directory

https://gerrit.wikimedia.org/r/434218

Vvjjkkii renamed this task from AutoloadNamespaces in extension.json should not require a slash at the end of the path to skcaaaaaaa.Jul 1 2018, 1:08 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed MarkAHershberger as the assignee of this task.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
CommunityTechBot renamed this task from skcaaaaaaa to AutoloadNamespaces in extension.json should not require a slash at the end of the path.Jul 1 2018, 4:42 PM
CommunityTechBot closed this task as Resolved.
CommunityTechBot assigned this task to MarkAHershberger.
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added subscribers: gerritbot, Aklapper.