mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 03:19:00 +00:00
Use FW Registry
This commit is contained in:
parent
400e931bb7
commit
881d5fa9ae
@ -8,6 +8,8 @@
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
/**
|
||||
* Helper class for the patch tester component
|
||||
*
|
||||
@ -27,7 +29,7 @@ abstract class PatchtesterHelper
|
||||
{
|
||||
$params = JComponentHelper::getParams('com_patchtester');
|
||||
|
||||
$options = new JRegistry;
|
||||
$options = new Registry;
|
||||
|
||||
// If an API token is set in the params, use it for authentication
|
||||
if ($params->get('gh_token', ''))
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
/**
|
||||
* Methods supporting pull requests.
|
||||
*
|
||||
@ -154,7 +156,7 @@ class PatchtesterModelPull extends JModelLegacy
|
||||
}
|
||||
|
||||
// Set up the JHttp object
|
||||
$options = new JRegistry;
|
||||
$options = new Registry;
|
||||
$options->set('userAgent', 'JPatchTester/2.0');
|
||||
$options->set('timeout', 120);
|
||||
|
||||
|
@ -35,7 +35,7 @@ class PatchtesterViewPulls extends JViewLegacy
|
||||
/**
|
||||
* State object
|
||||
*
|
||||
* @var JRegistry
|
||||
* @var \Joomla\Registry\Registry
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $state;
|
||||
|
Loading…
Reference in New Issue
Block a user