Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/joomla/base/adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function setAdapter($name, &$adapter = null, $options = array())
}

// Check for a possible service from the container otherwise manually instantiate the class
if (Factory::getContainer()->exists($class))
if (Factory::getContainer()->has($class))
{
$this->_adapters[$name] = Factory::getContainer()->get($class);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public static function getInstance($name = null, $prefix = '\JApplication', Cont
$container = Factory::getContainer();
}

if ($container->exists($classname))
if ($container->has($classname))
{
static::$instances[$name] = $container->get($classname);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public static function getDbo()

if (!self::$database)
{
if (self::getContainer()->exists('DatabaseDriver'))
if (self::getContainer()->has('DatabaseDriver'))
{
self::$database = self::getContainer()->get('DatabaseDriver');
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Installer/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ public function loadAdapter($adapter, $options = array())
$options['type'] = $adapter;

// Check for a possible service from the container otherwise manually instantiate the class
if (Factory::getContainer()->exists($class))
if (Factory::getContainer()->has($class))
{
return Factory::getContainer()->get($class);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/MVC/Controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public static function getInstance($prefix, $config = array())
}

// Check for a possible service from the container otherwise manually instantiate the class
if (Factory::getContainer()->exists($class))
if (Factory::getContainer()->has($class))
{
self::$instance = Factory::getContainer()->get($class);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function getInstance($client, $options = array())
}

// Check for a possible service from the container otherwise manually instantiate the class
if (Factory::getContainer()->exists($classname))
if (Factory::getContainer()->has($classname))
{
self::$instances[$client] = Factory::getContainer()->get($classname);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static function getInstance($type, $prefix = 'JTable', $config = array())
$db = $config['dbo'] ?? Factory::getDbo();

// Check for a possible service from the container otherwise manually instantiate the class
if (Factory::getContainer()->exists($tableClass))
if (Factory::getContainer()->has($tableClass))
{
return Factory::getContainer()->get($tableClass);
}
Expand Down