Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding dependency to composer #1

Open
drewclauson opened this issue Nov 23, 2015 · 1 comment
Open

Error when adding dependency to composer #1

drewclauson opened this issue Nov 23, 2015 · 1 comment
Assignees

Comments

@drewclauson
Copy link
Owner


  [Symfony\Component\Config\Exception\FileLoaderLoadException]                                                                                                                                                                                                                                     
  A service definition must be an array or a string starting with "@" but NULL found for service "json_api.config" in /var/www/WinStreamAPI/app/config/services.yml. Check your YAML syntax in /var/www/WinStreamAPI/app/config/services.yml (which is being imported from "/var/www/WinStreamAPI/app/config/config.yml").






  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]                     
  A service definition must be an array or a string starting with "@" but NULL found for service "json_api.config" in /var/www/WinStreamAPI/app/config/services.yml. Check your YAML syntax.



Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception



  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command.


@drewclauson drewclauson self-assigned this Nov 23, 2015
@drewclauson
Copy link
Owner Author

Temporary fix is to add a service reference to your own Config class in app/config/services.yml before installing the package:

services:
  json_api.config:
    class: REST\CommonBundle\JsonApiConfig

This class must extend Elytus\LimoncelloBundle\Config\ConfigInterface and follow the example found in ExampleConfig.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant