Skip to content

Commit de24d7f

Browse files
committed
Revert "Revert "Drop App::dbConnect() method (#1361)""
This reverts commit 845123f.
1 parent 845123f commit de24d7f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/App.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -567,24 +567,6 @@ public function loadTemplate($name)
567567
->addMoreInfo('template_dir', $this->template_dir);
568568
}
569569

570-
/**
571-
* Connects database.
572-
*
573-
* @param string $dsn Format as PDO DSN or use "mysql://user:pass@host/db;option=blah", leaving user and password arguments = null
574-
* @param string $user
575-
* @param string $password
576-
* @param array $args
577-
*
578-
* @return Persistence
579-
*/
580-
public function dbConnect($dsn, $user = null, $password = null, $args = [])
581-
{
582-
$this->db = Persistence::connect($dsn, $user, $password, $args);
583-
$this->db->app = $this;
584-
585-
return $this->db;
586-
}
587-
588570
protected function getRequestUrl()
589571
{
590572
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // IIS

0 commit comments

Comments
 (0)