Shlink.ERROR - Laminas\ServiceManager\Exception\ServiceNotCreatedException: Service dependencies config must exist and be an array in C:\Apache24\htdocs\shlink\vendor\laminas\laminas-servicemanager\src\AbstractFactory\ConfigAbstractFactory.php:64 #78
Unanswered
priyakunal
asked this question in
Help wanted
Replies: 0 comments 8 replies
|
Can you provide all the steps you provided to set-up the project? Does any other route of the project work normally? |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I get this error when trying to access a new route(created by me) in Core\config\routes.config.php.
Basically I am trying to access a file uploaded to database when clicked on the Short URL.
A Short URL and Long URL is generated for a file uploaded by the User.
Short URL: http://shlink.api/Gsnyb
Long URL: http://shlink.api/files/TestFile.txt
I am redirected to the Long URL on Short URL click. For the Long URL route handling, I have added the route as below:
[ 'name' => Action\FileAction::class, 'path' => '/files/{fileName}', 'middleware' => [ IpAddress::class, Action\FileAction::class, ], 'allowed_methods' => [RequestMethod::METHOD_GET], ],In the FileAction class, I need to write code to fetch the file and load it in browser.
The FileAction class is not working and I get the error as below:
Please help me resolve this error.
All reactions