public function run() { $checkUserIdentity = new \Controllers\IdentityController(); $checkUserIdentity->getUserModel(); $config = new \Config\Route(); $config->runs(); if (!$config->getCustomRoute()) { $this->setController(); call_user_func_array(array($this->classController, $this->action), $this->params); } }
public function run() { $config = new \Config\Route(); $config->runs(); if (!$config->getCustomRoute()) { $this->setController(); $binding = new Extract(); $binding->regMethod(); if ($binding->regMethod()) { $con = 'BindingModels\\' . $this->action; $con = new $con(); $this->params[] = $con; } else { $this->params = []; } call_user_func_array(array($this->classController, $this->action), $this->params); } }