Skip to content

Default class namespace prefix - config option (feature request?)Β #31

@piotrku

Description

@piotrku

Version

0.16.0

Expected behavior

Config option to set custom namespace prefix

Actual behavior

I see it in the WP Emerge Starter Theme but no effect here

Comments

Not actually an issue but I cannot find another way of contact.

Is it a good practice to use in my project the default \App namespace?
Won't this cause problems when I install by some chance some other library using the same generic namespace?

I see your WP Emerge Starter Theme uses its own, custom namespace MyApp\\ which is defined in the config file. Here I cannot find a way to define something like the default namespace, so the first problem I encountered was the controller - I have overcome that by prefixing the controller class like: ->handle('WPLar\Controllers\Web\HomeController@index'); but one thing - this is not very convenient and the second thing - will I have more problems like this further on the way where the default \App namespace will create some unexpected behaviours and problems for me?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions