9
votes
Why do we need a system autoloader when we are all ready using Composer autoloading?
My understanding of autoloading is fairly rudimentary but since this has 4 votes and no answers I think I will give it a shot. Please more knowledgeable types add corrections or a better answer etc.
...
5
votes
Why do we need a system autoloader when we are all ready using Composer autoloading?
James did a good differentiator between the composer autoloader and JLoader. I think the other thing that your missing here is that JLoader massively predates composer existing (and even when composer ...
3
votes
Loading custom classes in a component automatically
If the utility classes are only used in your component then include them in a folder within your administrator component. Whether you register the classes with JLoader or just require_once them just ...
3
votes
Accepted
Proper way for autoloading in Joomla 4
This should still work in 4.0 but will break in 5.0. You are advised to use fully qualified class names. Remove JLoader::register() call and instead add a use statement:
use Joomla\Component\Fields\...
2
votes
Accepted
Moving a Joomla site to a new hosting and now getting missing dependency errors
In the end I managed to solve the issue by simply re-creating the page locally (using MAMP), generating an Akeeba backup, and restoring the backup via Kickstart. I really have no idea why this ...
1
vote
Moving a Joomla site to a new hosting and now getting missing dependency errors
So there could be an issue with the new hosting if it’s alao a custom solution in that it doesn’t have a tool called composer installed.
What I’d recommend:
Try reinstalling Joomla (or updating it ...
1
vote
Accepted
Library with namespace and autoloader example
I found the answer finaly i greated an example on github for who is intrested:
https://github.com/basd82/joomla_libarary
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
autoload × 11joomla-3.x × 2
custom-component × 2
joomla-4 × 2
libraries × 2
namespace × 2
jloader × 2
component × 1
joomla-4.x × 1
joomla-3.9 × 1
composer × 1
joomla-5.x × 1