Quote:
Originally Posted by BenWeiland
1) What is the best way to check if another module is enabled?
|
PHP Code:
\XLite\Core\Database::getRepo('XLite\Model\Module')->findOneBy(array('author' => 'Max', 'name' => 'Test'))->getEnabled()
Quote:
Originally Posted by BenWeiland
2) Can we make use of doctrine eventmanager? I would like to make an event listener for some extra logs. What would be the best way to do this?
|
It depends on what you are looking for. Try these links:
-
http://docs.doctrine-project.org/en/latest/reference/events.html
-
http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#sql-logger-optional
Does it help?