Skip to content

Commit d68831b

Browse files
committed
[FrameworkBundle] tweaked some error messages
1 parent 8d32dcd commit d68831b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getRequest()
159159
public function getDoctrine()
160160
{
161161
if (!$this->container->has('doctrine')) {
162-
throw new \LogicException('The DoctrineBundle is not installed in your application.');
162+
throw new \LogicException('The DoctrineBundle is not registered in your application.');
163163
}
164164

165165
return $this->container->get('doctrine');
@@ -175,7 +175,7 @@ public function getDoctrine()
175175
public function getUser()
176176
{
177177
if (!$this->container->has('security.context')) {
178-
throw new \LogicException('The SecurityBundle is not installed in your application.');
178+
throw new \LogicException('The SecurityBundle is not registered in your application.');
179179
}
180180

181181
$token = $this->container->get('security.context')->getToken();

0 commit comments

Comments
 (0)