Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to PHP namespaces #53

Open
bergie opened this issue Apr 14, 2011 · 0 comments
Open

Switch to PHP namespaces #53

bergie opened this issue Apr 14, 2011 · 0 comments
Milestone

Comments

@bergie
Copy link
Member

bergie commented Apr 14, 2011

Midgard MVC code should live under the Midgard\MVC namespace and we should utilize a PHP standards autoloader:
http://groups.google.com/group/php-standards/web/psr-0-final-proposal

Since the entry point to Midgard MVC is midgardmvc_core::get_instance(), this rootlevel class should be kept available for backwards compatibility purposes. The target is to keep the component API unchanged.

The only other compatibility class we need is midgardmvc_core_request which extends Midgard\MVC\Request, as most component controllers have this as a typecasted parameter.

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

No branches or pull requests

1 participant