Skip to content

Commit

Permalink
Make some facades generic
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jan 24, 2024
1 parent f4399e0 commit d863b9a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helpers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/**
* Auth
*
* @see \User\Classes\AuthManager
* @see \Responsiv\User\Classes\AuthManager
*/
class Auth extends October\Rain\Support\Facades\Auth {}
4 changes: 2 additions & 2 deletions helpers/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/**
* Currency
*
* @see \Shop\Classes\CurrencyManager
* @see \Responsiv\Shop\Classes\CurrencyManager
*/
class Currency extends Shop\Facades\Currency {}
class Currency extends October\Rain\Support\Facades\Currency {}
23 changes: 23 additions & 0 deletions src/Support/Facades/Currency.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php namespace October\Rain\Support\Facades;

use October\Rain\Support\Facade;

/**
* Currency facade
*
* @method static mixed listConverters(bool $asObject)
* @method static mixed listConverterObjects()
* @method static mixed findConverterByAlias()
*
* @see \Responsiv\Shop\Classes\CurrencyManager
*/
class Currency extends Facade
{
/**
* getFacadeAccessor gets the registered name of the component.
*/
protected static function getFacadeAccessor()
{
return 'currencies';
}
}
2 changes: 1 addition & 1 deletion src/Support/Facades/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @method static array listEnabled()
* @method static array listSiteIds()
* @method static array listSiteIdsInContext()
* @method static array listSites()
* @method static iterable listSites()
* @method static int|null getSiteIdFromContext()
* @method static mixed getSiteFromContext()
* @method static bool hasGlobalContext()
Expand Down

0 comments on commit d863b9a

Please sign in to comment.