29 lines
502 B
PHP
29 lines
502 B
PHP
|
<?php namespace Illuminate\Database;
|
||
|
|
||
|
interface ConnectionResolverInterface {
|
||
|
|
||
|
/**
|
||
|
* Get a database connection instance.
|
||
|
*
|
||
|
* @param string $name
|
||
|
* @return \Illuminate\Database\Connection
|
||
|
*/
|
||
|
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);
|
||
|
|
||
|
}
|