Install an extension without the api part and usage in the XML file
No empty folder is created under /api/components/com_xxx
Empty folder is created under /api/components/com_xxx
It would be supposed that if an extension does not use the api webservices and has not a tag for that section in the XML manifest no empty folder is created under the /api path
Ping @wilsonge the author of all this one here.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-09 13:09:06 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/24140
Reopen it @franz-wohlkoenig i was just posting the content
Title |
|
Status | Closed | ⇒ | New |
Closed_Date | 2019-03-09 13:09:06 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
Status | New | ⇒ | Discussion |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/24140
This is the same behaviour in the site application right? I mean I'm not going to dispute it's odd behaviour but this is how the installer works with existing site and admin components too. https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Installer/Adapter/ComponentAdapter.php#L208-L271
It has earlier been deemed a requirement that components all have an administrative client (in part because of code changes in 4.0 with conventions looking for things in that area). In theory, it is possible to create an admin only component, and there would definitely be components without an API element. So, having a cleanup routine to remove the frontend and API directories if unused would be a good idea to entertain.
I agree. My point is just we should treat the 'optional' directories the same (site and api)
I agree with of you @wilsonge and @mbabker , my idea was just related to the fact that historically Joomla had 2 applications, site and admin one. Now in J4 we introduced a third application.
However supposed that only a few and specialized components will have and will use this API application in the future, i think that it would be better to parse the XML manifest and create an api directory only if really needed by the extension. Obviously the same concept should be applied even to site and admin folders.
Category | ⇒ | External Library |
Labels |
Added:
J4 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-24 13:57:20 |
Closed_By | ⇒ | jwaisner |
Closed_By | jwaisner | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/24140
This discussion has ran its course. Closing as it has been many months since anything has been added.
closed as no Content.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24140.