factory('PMA\libraries\controllers\table\TableSearchController'); $container->alias( 'TableSearchController', 'PMA\libraries\controllers\table\TableSearchController' ); $container->set('PMA\libraries\Response', Response::getInstance()); $container->alias('response', 'PMA\libraries\Response'); /* Define dependencies for the concerned controller */ $dependency_definitions = array( 'searchType' => 'normal', 'url_query' => &$url_query ); /** @var TableSearchController $controller */ $controller = $container->get('TableSearchController', $dependency_definitions); $controller->indexAction();