Finished log configuration. All loggers are currentrly working
This commit is contained in:
@@ -24,14 +24,17 @@
|
||||
namespace Thelia\Tools;
|
||||
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Thelia\Log\Tlog;
|
||||
|
||||
class Redirect
|
||||
{
|
||||
public static function exec($url, $status = 302)
|
||||
{
|
||||
$response = new RedirectResponse($url, $status);
|
||||
if (false == Tlog::getInstance()->showRedirect($url)) {
|
||||
$response = new RedirectResponse($url, $status);
|
||||
|
||||
$response->send();
|
||||
$response->send();
|
||||
}
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Thelia\Tools\Rest;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Thelia\Core\HttpFoundation\Response;
|
||||
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
|
||||
Reference in New Issue
Block a user