Exemplo n.º 1
0
 /**
  * setUpBeforeClass
  *
  * @return  void
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     if (static::$dbo) {
         AbstractDatabaseAdapter::setInstance(new WindwalkerAdapter(static::$dbo));
     }
 }
 /**
  * Registers the service provider with a DI container.
  *
  * @param   Container $container The DI container.
  *
  * @return  Container  Returns itself to support chaining.
  *
  * @since   1.0
  */
 public function register(Container $container)
 {
     AbstractDatabaseAdapter::setInstance(new JoomlaAdapter($container->get('db')));
 }