@@ 122-128 (lines=7) @@ | ||
119 | } |
|
120 | ||
121 | // Clear all entity managers to clear references to entities for GC |
|
122 | if ($this->container->hasParameter('doctrine.entity_managers')) { |
|
123 | foreach ($this->container->getParameter('doctrine.entity_managers') as $id) { |
|
124 | if (!$this->container instanceof IntrospectableContainerInterface || $this->container->initialized($id)) { |
|
125 | $this->container->get($id)->clear(); |
|
126 | } |
|
127 | } |
|
128 | } |
|
129 | ||
130 | // Close all connections to avoid reaching too many connections in the process when booting again later (tests) |
|
131 | if ($this->container->hasParameter('doctrine.connections')) { |
|
@@ 131-137 (lines=7) @@ | ||
128 | } |
|
129 | ||
130 | // Close all connections to avoid reaching too many connections in the process when booting again later (tests) |
|
131 | if ($this->container->hasParameter('doctrine.connections')) { |
|
132 | foreach ($this->container->getParameter('doctrine.connections') as $id) { |
|
133 | if (!$this->container instanceof IntrospectableContainerInterface || $this->container->initialized($id)) { |
|
134 | $this->container->get($id)->close(); |
|
135 | } |
|
136 | } |
|
137 | } |
|
138 | } |
|
139 | ||
140 | /** |