Hello,
You can foud documentation here: https://docs.joomla.org/J3.x:Using_Composer_with_Joomla and it can be helpful to read that too : https://github.com/joomla/joomla-cms/pull/3617
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
Yes. That's the reason why I was asking here. I hoped that there will be a way to use composer in an extension. But it looks like it can't. I wanted to be sure, before I do my own way.
On Tue, Mar 3, 2015 at 1:56 PM, Tom Hutchison <hutc...@gmail.com> wrote:
Did you read
Thanks. But did you have a look on that links? They do not mention something how to use composer in an extension.
On Tue, Mar 3, 2015 at 12:58 PM, xillibit <xill...@gmail.com> wrote:
Hello,
You can foud documentation here: https://docs.joomla.org/J3.x:Using_Composer_with_Joomla and it can be helpful to read that too : https://github.com/joomla/joomla-cms/pull/3617
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-dev-general@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-dev-general@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Not at the moment in Joomla! 3.4. In the longer term it is the CMS's aim that you can download extra packages. To emphasize this, we will not yet be releasing the composer.json file within the main Joomla! download.
Using a custom vendor folder location is not recommended and Joomla would be better to use the default /vendor the going of path by using it's own location.
The compooser.json should be distributed by Joomla at all times. If Joomla requires specific libraries to use specific versions the composer.json file can specify this. This is the whole idea behind composer, if you specify a specific version you locked it down. (See Composer documentation.)
A first test on my side didn't produce any issues with my own composer auto loader on Joomla 3.4.So, just for the record. Nothing changed for the extensions which do update their libraries trough composer in Joomla 3.4.
On Wed, Mar 4, 2015 at 2:52 AM, Roberto Segura <rob...@phproberto.com> wrote:
In fact there is an issue now when trying to use it on third part extensions. Core composer defines the includeFile function ( https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/composer/ClassLoader.php#L410 ) so if you ship your extensions with another composer loader you get an already defined error. Solution is easy (but a bit annoying) wrap includeFile in your ClassLoader with:
if (!function_exists('Composer\Autoload\includeFile'))
{
}
I think it's more a composer issue because it will fail also with 2 extensions using composer.
El martes, 3 de marzo de 2015, 20:51:05 (UTC+1), Bakual escribió:
Currently, it's only used to maintain external libraries shipped together with the CMS.
Am Dienstag, 3. März 2015 14:02:34 UTC+1 schrieb laoneo:
Yes. That's the reason why I was asking here. I hoped that there will be a way to use composer in an extension. But it looks like it can't. I wanted to be sure, before I do my own way.
On Tue, Mar 3, 2015 at 1:56 PM, Tom Hutchison <hutc...@gmail.com> wrote:
Did you read
Thanks. But did you have a look on that links? They do not mention something how to use composer in an extension.
On Tue, Mar 3, 2015 at 12:58 PM, xillibit <xill...@gmail.com> wrote:
Hello,
You can foud documentation here: https://docs.joomla.org/J3.x:Using_Composer_with_Joomla and it can be helpful to read that too : https://github.com/joomla/joomla-cms/pull/3617
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
Hi all,The information on https://docs.joomla.org/J3.x:Using_Composer_with_Joomla is not 100% correct and steps provided should be handled with care to not run into issues :Not at the moment in Joomla! 3.4. In the longer term it is the CMS's aim that you can download extra packages. To emphasize this, we will not yet be releasing the composer.json file within the main Joomla! download.Not 100% correct. The answer is yes, you can but you need to take care what steps you take.Joomla is distributing the composer.json file through Github but not through the downloadable packages. Using composer with the downloadable packages will get you into trouble as Joomla uses a none default location for it's vendor folder /libraries/vendor vs /vendor (default).
If you would use compooser without the Joomla composer.json file in place you will not be able to update the Joomla dependencies yourself. Composer will just halt at that point and tell you to do an init or put a composer file in place.
Be careful here, if you then init composer and put your own file in place without using the Joomla composer.json file. Compooser will initialise itself in the default /vendor folder. This will not work, as Joomla cannot load your dependencies from the folder.Side noteUsing a custom vendor folder location is not recommended and Joomla would be better to use the default /vendor the going of path by using it's own location.
Side noteThe compooser.json should be distributed by Joomla at all times. If Joomla requires specific libraries to use specific versions the composer.json file can specify this. This is the whole idea behind composer, if you specify a specific version you locked it down. (See Composer documentation.)
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
"There is absolutely no need for people to have the composer.json. If you want to hack around it feel free to. But there is no reason for us to make it easy for you to hack around it (and it is a hack)"
--
You received this message because you are subscribed to a topic in the Google Groups "Joomla! General Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joomla-dev-general/hYZz5JI8ZFA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joomla-dev-gene...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
Please pardon any errors, this message was sent from my iPhone.
The vendor directory is a black box. The public API is vendor/autoload.php : https://igor.io/2013/09/04/composer-vendor-directory.html
2. Discouraging updating dependenciesThe whole premise of Composer is that it allows you to do application wide dependency management. If you want to discourage developers from doing that then don't use Composer.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
Hello Ben,I feel your pain. The composer integration is pretty messed up in Joomla 3.4. If it will be fixed still fails to be seen. So far nothing on the roadmap for 3.5 or 3.6 in that direction.
Instead of waiting for this we have fixed this problem in our Joomlatools Platform. We refactored the composer integration to work the way it should work using the composer best practices and default and additionally moved core components into separate repos to lighten the core.