new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php namespace ZN\Remote;
|
||||
/**
|
||||
* ZN PHP Web Framework
|
||||
*
|
||||
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
||||
*
|
||||
* @package ZN
|
||||
* @license MIT [http://opensource.org/licenses/MIT]
|
||||
* @author Ozan UYKUN [ozan@znframework.com]
|
||||
*/
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class RemoteExtends
|
||||
{
|
||||
/**
|
||||
* Alias different connection
|
||||
*
|
||||
* @param array $config
|
||||
*
|
||||
* @return Connection
|
||||
*/
|
||||
public function new(array $config)
|
||||
{
|
||||
return $this->differentConnection($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Different Connection
|
||||
*
|
||||
* @param array $config
|
||||
*
|
||||
* @return Connection
|
||||
*/
|
||||
public function differentConnection(array $config)
|
||||
{
|
||||
$class = get_called_class();
|
||||
|
||||
return new $class($config);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user