You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
570 B
PHTML
30 lines
570 B
PHTML
|
10 years ago
|
<?php
|
||
|
|
|
||
|
|
namespace Illuminate\Database;
|
||
|
|
|
||
|
|
interface ConnectionResolverInterface
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Get a database connection instance.
|
||
|
|
*
|
||
|
|
* @param string $name
|
||
|
|
* @return \Illuminate\Database\ConnectionInterface
|
||
|
|
*/
|
||
|
|
public function connection($name = null);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the default connection name.
|
||
|
|
*
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function getDefaultConnection();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Set the default connection name.
|
||
|
|
*
|
||
|
|
* @param string $name
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function setDefaultConnection($name);
|
||
|
|
}
|