Version 5.0.0 beta 10
This commit is contained in:
1 parent
56979f8ee8
commit
264eeb97e0
325 files changed
+6442
-1849
No files matched your search
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace IPS\Api\GraphQL;
|
||||
use IPS\Api\GraphQL\Queries\ModuleAccess;
|
||||
use IPS\Application;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
@@ -30,11 +31,12 @@ abstract class AppQueries
|
||||
/**
|
||||
* Get the supported query types in this app
|
||||
*
|
||||
* @param string $app
|
||||
* @param string|Application $app
|
||||
* @return array
|
||||
*/
|
||||
public static function queries( string $app ): array
|
||||
public static function queries( string|Application $app ): array
|
||||
{
|
||||
$app = ( $app instanceof Application ) ? $app : Application::load( $app );
|
||||
return [
|
||||
'moduleAccess' => new ModuleAccess($app)
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user