for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EventEspresso\core\domain\entities\routing\handlers\admin;
use EE_Dependency_Map;
/**
* Class EspressoEventsAdmin
* detects and executes logic for any Event Espresso Events admin page
*
* @package EventEspresso\core\domain\entities\routing\admin
* @author Brent Christensen
* @since $VID:$
*/
class EspressoEventsAdmin extends AdminRoute
{
* returns true if the current request matches this route
* @return bool
public function matchesCurrentRequest()
global $pagenow;
return $pagenow
&& $pagenow === 'admin.php'
&& $this->request->isAdmin()
&& $this->request->getRequestParam('page') === 'espresso_events';
}
protected function registerDependencies()
$this->dependency_map->registerDependencies(
'EventEspresso\core\domain\services\admin\events\default_settings\AdvancedEditorAdminFormSection',
['EE_Admin_Config' => EE_Dependency_Map::load_from_cache]
);
* implements logic required to run during request
protected function requestHandler()
return false;