callback.php 268 B

12345678910111213141516
  1. <?php namespace Laravel\Database\Connector;
  2. class Callback extends Connector {
  3. /**
  4. * Establish a PDO database connection.
  5. *
  6. * @param array $config
  7. * @return PDO
  8. */
  9. public function connect($config)
  10. {
  11. return call_user_func($config['connector']);
  12. }
  13. }