Run add-on extension WebLoader
- majak
- Member | 4
Hi,
I know this will be very basic topic, but after some hours I realy dont know how to run WebLoader.
Explanation of problem:
There is add-on WebLoader by Jan Marek: https://componette.org/search/?….
I understand the code and there is an example, thats ok.
- Question one: Where to put downloaded WebLoader library? I suggest it should be in vendor directory. Observation: I had Nette (dont know which version) two months old and there was not any vendor dir. I downloaded new version today and voila vendor is there. Thats good, Nette is making progress, but it should be documented!!!
Ok I put WebLoader to vendor.
And I added some lines to bootstrap:
Also I put these lines to config.neon:
But still I get this error:
Class WebLoader\LoaderFactory used in service ‘webloader.factory’ has not
been found or is not instantiable.
So, what did I understand badly? Where is the problem?
P.S.: I read DI Container Extension.
Thanks for advice.
Last edited by majak (2014-04-21 17:38)
- Tomáš Votruba
- Moderator | 1114
Hi, try register extension in extensions
section in config. If
you have some troubles with addon, check it's github
readme (usually it's more up to date).
In particular:
and remove that code from bootstrap.php
.
- majak
- Member | 4
Thanks, but result is same.
This is what I have in config.neon:
and I removed added code from bootstrap except the require:
Also cleaned a cache.
I still get a error:
Nette\DI\ServiceCreationException
Class WebLoader\LoaderFactory used in service ‘webloader.factory’ has not been found or is not instantiable.
- David Matějka
- Moderator | 6445
Use composer for webloader installation
Last edited by matej21 (2014-04-21 21:31)