I've juts included 4 new packages: zfcampus/zf-apigility
, zfcampus/zf-apigility-admin
, zfcampus/zf-development-mode
and rwoverdijk/assetmanager
(not sure why though but fair enough) into my ZF3 project in order to start to use Apigility.
After that the website now displays this stack trace:
<b>Fatal error</b>: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Unable to resolve service "InputFilterManager" to a factory; are you certain you provided it during configuration?' in D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php:670
Stack trace:
#0 D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(746): Zend\ServiceManager\ServiceManager->getFactory('InputFilterMana...')
#1 D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(195): Zend\ServiceManager\ServiceManager->doCreate('InputFilterMana...')
#2 D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zfcampus\zf-content-validation\src\ContentValidationListenerFactory.php(31): Zend\ServiceManager\ServiceManager->get('InputFilterMana...')
#3 D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(747): in <b>D:\RZECZY_ADAMA\_XAMPP\xampp-5.6\htdocs\zend3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php</b> on line <b>670</b><br />
Any ideas?
EDIT: It turns up, that I needed another pacakge: Zend\InputFilter
, after importing it via Composer and adding it into modules.config.php it started to show my previous website. I still can't see Administration Panel of Apigility after running: php public/index.php development enable
.
EDIT: [23/11/2016] I've had to add AssetManager to development.config.php
& dist (yeah I know this could easily be copied with development-enable script). and it started to work. For anybody else who will struggle as me, here is a development.config.php
modules list:
'modules' => [
'ZF\Apigility\Admin',
'ZF\Apigility\Admin\Ui',
'ZF\Configuration',
'AssetManager'
],