diff --git a/core/lib/Thelia/DataCollector/PropelCollector.php b/core/lib/Thelia/DataCollector/PropelCollector.php deleted file mode 100644 index 97795d7ca..000000000 --- a/core/lib/Thelia/DataCollector/PropelCollector.php +++ /dev/null @@ -1,196 +0,0 @@ -. */ -/* */ -/*************************************************************************************/ -namespace Thelia\DataCollector; - -use DebugBar\DataCollector\DataCollector; -use DebugBar\DataCollector\Renderable; -use Propel\Runtime\Propel; -use Psr\Log\LoggerInterface; - -/** - * Class PropelCollector - * @author Manuel Raynaud - */ -class PropelCollector extends DataCollector implements Renderable, LoggerInterface { - - public function __construct() - { - $serviceContainer = Propel::getServiceContainer(); - $serviceContainer->setLogger('debugBarLogger', $this); - } - - /** - * Called by the DebugBar when data needs to be collected - * - * @return array Collected data - */ - function collect() - { - // TODO: Implement collect() method. - } - - /** - * Returns the unique name of the collector - * - * @return string - */ - function getName() - { - return "Propel 2"; - } - - public function getWidgets() - { - return array( - "propel" => array( - "widget" => "PhpDebugBar.Widgets.SQLQueriesWidget", - "map" => "propel 2", - "default" => "[]" - ), - "propel:badge" => array( - "map" => "propel.nb_statements", - "default" => 0 - ) - ); - } - - /** - * System is unusable. - * - * @param string $message - * @param array $context - * @return null - */ - public function emergency($message, array $context = array()) - { - // TODO: Implement emergency() method. - } - - /** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - * - * @param string $message - * @param array $context - * @return null - */ - public function alert($message, array $context = array()) - { - // TODO: Implement alert() method. - } - - /** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - * - * @param string $message - * @param array $context - * @return null - */ - public function critical($message, array $context = array()) - { - // TODO: Implement critical() method. - } - - /** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - * - * @param string $message - * @param array $context - * @return null - */ - public function error($message, array $context = array()) - { - // TODO: Implement error() method. - } - - /** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - * - * @param string $message - * @param array $context - * @return null - */ - public function warning($message, array $context = array()) - { - // TODO: Implement warning() method. - } - - /** - * Normal but significant events. - * - * @param string $message - * @param array $context - * @return null - */ - public function notice($message, array $context = array()) - { - // TODO: Implement notice() method. - } - - /** - * Interesting events. - * - * Example: User logs in, SQL logs. - * - * @param string $message - * @param array $context - * @return null - */ - public function info($message, array $context = array()) - { - // TODO: Implement info() method. - } - - /** - * Detailed debug information. - * - * @param string $message - * @param array $context - * @return null - */ - public function debug($message, array $context = array()) - { - // TODO: Implement debug() method. - } - - /** - * Logs with an arbitrary level. - * - * @param mixed $level - * @param string $message - * @param array $context - * @return null - */ - public function log($level, $message, array $context = array()) - { - // TODO: Implement log() method. - } -} \ No newline at end of file