fix usage of ProfilerConnectionWrapper
This commit is contained in:
@@ -60,7 +60,7 @@ class DatabaseConfiguration implements ConfigurationInterface
|
||||
->cannotBeEmpty()
|
||||
->end()
|
||||
->scalarNode("classname")
|
||||
->defaultValue("\Propel\Runtime\Connection\PropelPDO")
|
||||
->defaultValue("\Propel\Runtime\Connection\ConnectionWrapper")
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
|
||||
@@ -47,10 +47,9 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
|
||||
|
||||
public function __construct(LoggerInterface $alternativeLogger = null)
|
||||
{
|
||||
$serviceContainer = Propel::getServiceContainer();
|
||||
$serviceContainer->setLogger('defaultLogger', $this);
|
||||
$con = Propel::getServiceContainer()->getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
||||
$con->setLogger($this);
|
||||
|
||||
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
||||
$con->setLogMethods(array(
|
||||
'exec',
|
||||
'query',
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="{url path='admin/home'}">{intl l="Home"}</a></li>
|
||||
<li><a href="{url path='admin/folders'}">{intl l="Folders"}</a>
|
||||
<li><a href="{url path='admin/folders'}">{intl l="Folders"}</a></li>
|
||||
|
||||
{ifloop rel="folder_path"}</li>
|
||||
{ifloop rel="folder_path"}
|
||||
{loop name="folder_path" type="folder-path" visible="*" folder=$folder_id}
|
||||
{if $ID == $parent}
|
||||
<li class="active">
|
||||
@@ -20,10 +20,6 @@
|
||||
{/loop}
|
||||
{/ifloop}
|
||||
|
||||
{elseloop rel="folder_path"}
|
||||
</li>
|
||||
{/elseloop}
|
||||
|
||||
{if $editing_content == true}
|
||||
{loop name="content_path" type="content" visible="*" id=$content_id}
|
||||
<li>{intl l="Editing %title" title="$TITLE"}</li>
|
||||
|
||||
@@ -50,8 +50,3 @@ if ( false === in_array($request->getClientIp(), $trustedIp)) {
|
||||
$response = $thelia->handle($request)->prepare($request)->send();
|
||||
|
||||
$thelia->terminate($request, $response);
|
||||
|
||||
if (strstr($response->headers->get('content-type'), 'text/html') !== false) {
|
||||
echo "\n<!-- page parsed in : " . (microtime(true) - $thelia->getStartTime())." s. -->";
|
||||
echo "\n<!-- memory peak : " . memory_get_peak_usage()/1024/1024 . " MiB. -->";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user