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

Add extension.json and a posible fix for composer #8

Closed
wants to merge 3 commits into from
Closed

Add extension.json and a posible fix for composer #8

wants to merge 3 commits into from

Conversation

paladox
Copy link
Contributor

@paladox paladox commented Jan 25, 2016

No description provided.

@paladox paladox changed the title Do not merge Add extension.json and a posible fix for composer Jan 25, 2016
This also may fix composer problem with semanticforms.

Please use semanticformsselect.php directly since if you use composer that
should load extension.json and load the semanticforms extension.

Also add a translatible description.

Change-Id: Ic88894768afe30699b5fa3aa4d97450f613fff7e
@paladox
Copy link
Contributor Author

paladox commented Jan 25, 2016

I'm not sure why it keeps failing but the fix should be something like this maybe not extension.json.

@paladox
Copy link
Contributor Author

paladox commented Jan 25, 2016

Hi could I have help to fix the error.

@@ -32,7 +32,15 @@
}
},
"autoload": {
"classmap": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't autoloade things from other components! They should do this themselves

@@ -0,0 +1,22 @@
<?php

class SemanticFormsSelectHooks {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do I need such class here and especially out of the normal PSR-4 / src directory.

I did not clean-up this extension to see stuff like this (which is common practice in WMF related development) to be floating around.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that we can use a callback in extension.json and ExtensionFunctions

@mwjames
Copy link
Contributor

mwjames commented Jan 26, 2016

After just a quick look, I have to say that my opposition on the whole extension.json stuff is growing.

@paladox
Copy link
Contributor Author

paladox commented Jan 27, 2016

#20

@paladox paladox closed this Jan 27, 2016
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

Successfully merging this pull request may close these issues.

3 participants