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 Midgard API to use namespaces #5

Open
bergie opened this issue Jun 2, 2010 · 1 comment
Open

Switch Midgard API to use namespaces #5

bergie opened this issue Jun 2, 2010 · 1 comment
Labels

Comments

@bergie
Copy link
Member

bergie commented Jun 2, 2010

Midgard3 should be built with modern PHP in mind, and with the idea of being as close to regular Midgard API as possible. Midgard's GIR and Python APIs are already namespaces-based, and so PHP should be too.

Instead of:

$qb = new midgard_query_builder('midgard_article');
$article = new midgard_article();

We should have:

$qb = new Midgard\QueryBuilder('midgard_article');
$article = new Midgard\MgdSchema\midgard_article();
@indeyets
Copy link
Member

indeyets commented Jun 2, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants