G
G
getNullData2015-09-26 15:57:32
symfony
getNullData, 2015-09-26 15:57:32

Symfony - Services stopped working, what to do?

Good afternoon.
Updated composer update and services stopped working, and only in one bundle.
Symfony 2.6.6 Cleared the
cache.
Previously contacted the service, everything was fine, now it is not clear what the problem is.
$this->get('hash.service')->encode($code);

$this->container->get('hash.service')->encode($code);

Both options now issue
You have requested a non-existent service "hash.service".

log
[2015-09-26 15:53:53] request.INFO: Matched route "front_planner" (parameters: "_controller": "AppBundle\Controller\PlannerController::indexAction", "_route": "front_planner") [] []
[2015-09-26 15:53:53] request.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "hash.service"." at /Users/gnd/dm.lan/app/bootstrap.php.cache line 2098 {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException(code: 0): You have requested a non-existent service \"hash.service\". at /Users/gnd/dm.lan/app/bootstrap.php.cache:2098)"} []
[2015-09-26 15:53:53] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-26
@getNullData

Updated composer update and services stopped working

I wonder why this is ... See how your service is called in the very bundle in which the whole thing does not work and where the service disappeared. Try to write the version in composer.json as precisely as possible to allow only minor releases to be updated (no dev-master).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question