- Member | 105
Hi there im using nette 2.3.1 and i have this exception that on 2.7 i havent have
Nette\DI\ServiceCreationException Class GeoIp2\Database\Reader used in service '31_GeoIp2_Database_Reader' not found or is not instantiable.
my config service is like
services: # Extensions without compatibility with nette, them like services - GeoIp2\Database\Reader('%appDir%/common/geoip/GeoLite2-Country.mmdb')
I dont know what is worng
- David Kudera
- Member | 455
I suggest using psr4 autoloader, then you don't need to rebuild autoloader
on your own. Downside is that it's little bit slower, so on production you can
composer install -o which will create “files” autoloader
from all other types (psr4, psr0).
Last edited by David Kudera (2015-04-30 18:28)