Updated namespace conventions
This commit is contained in:
parent
c2deb11361
commit
1a60a6a8fe
|
@ -16,7 +16,7 @@ use Appwrite\Database\Database;
|
|||
use Appwrite\Database\Document;
|
||||
use Appwrite\Database\Validator\Authorization;
|
||||
use Appwrite\Event\Event;
|
||||
use Appwrite\Network\Validators\Origin;
|
||||
use Appwrite\Network\Validator\Origin;
|
||||
|
||||
/*
|
||||
* Configuration files
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
global $utopia, $request, $response, $register, $project;
|
||||
|
||||
use Utopia\Exception;
|
||||
use Appwrite\Storage\Devices\Local;
|
||||
use Appwrite\Storage\Device\Local;
|
||||
use Appwrite\Storage\Storage;
|
||||
use Appwrite\ClamAV\Network;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ use Appwrite\Database\Database;
|
|||
use Appwrite\Database\Document;
|
||||
use Appwrite\Database\Validator\UID;
|
||||
use Appwrite\OpenSSL\OpenSSL;
|
||||
use Appwrite\Network\Validators\CNAME;
|
||||
use Appwrite\Network\Validator\CNAME;
|
||||
use Cron\CronExpression;
|
||||
|
||||
include_once __DIR__ . '/../shared/api.php';
|
||||
|
|
|
@ -15,10 +15,10 @@ use Appwrite\ClamAV\Network;
|
|||
use Appwrite\Database\Database;
|
||||
use Appwrite\Database\Validator\UID;
|
||||
use Appwrite\Storage\Storage;
|
||||
use Appwrite\Storage\Devices\Local;
|
||||
use Appwrite\Storage\Validators\File;
|
||||
use Appwrite\Storage\Validators\FileSize;
|
||||
use Appwrite\Storage\Validators\Upload;
|
||||
use Appwrite\Storage\Device\Local;
|
||||
use Appwrite\Storage\Validator\File;
|
||||
use Appwrite\Storage\Validator\FileSize;
|
||||
use Appwrite\Storage\Validator\Upload;
|
||||
use Appwrite\Storage\Compression\Algorithms\GZIP;
|
||||
use Appwrite\Resize\Resize;
|
||||
use Appwrite\OpenSSL\OpenSSL;
|
||||
|
|
|
@ -7,7 +7,7 @@ use Utopia\Validator\Text;
|
|||
use Utopia\Validator\ArrayList;
|
||||
use Utopia\Response;
|
||||
use Utopia\Validator\Host;
|
||||
use Appwrite\Storage\Validators\File;
|
||||
use Appwrite\Storage\Validator\File;
|
||||
|
||||
$result = [];
|
||||
|
||||
|
|
|
@ -475,7 +475,7 @@ $utopia->get('/open-api-2.json')
|
|||
$node['x-example'] = '{}';
|
||||
//$node['format'] = 'json';
|
||||
break;
|
||||
case 'Appwrite\Storage\Validators\File':
|
||||
case 'Appwrite\Storage\Validator\File':
|
||||
$consumes = ['multipart/form-data'];
|
||||
$node['type'] = 'file';
|
||||
break;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<div class="zone large padding margin-top" id="message" style="display: none">
|
||||
<h1 class="margin-bottom">Missing Redirect URL</h1>
|
||||
<p>Your OAuth login flow is missing a redirect URL. Please check the <a href="https://<?php echo APP_DOMAIN; ?>/docs/client/account?sdk=web#createOAuth2Session">OAuth docs</a> and send request for new session with a valid callback URL.</p>
|
||||
<p>Your OAuth login flow is missing a redirect URL. Please check the
|
||||
<a href="https://<?php echo APP_DOMAIN; ?>/docs/client/account?sdk=web#createOAuth2Session">OAuth docs</a>
|
||||
and send request for new session with a valid callback URL.</p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -5,7 +5,7 @@ use Utopia\Config\Config;
|
|||
use Utopia\Domains\Domain;
|
||||
use Appwrite\Database\Database;
|
||||
use Appwrite\Database\Validator\Authorization;
|
||||
use Appwrite\Network\Validators\CNAME;
|
||||
use Appwrite\Network\Validator\CNAME;
|
||||
|
||||
require_once __DIR__.'/../init.php';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ echo APP_NAME.' deletes worker v1 has started';
|
|||
|
||||
use Appwrite\Database\Database;
|
||||
use Appwrite\Database\Document;
|
||||
use Appwrite\Storage\Devices\Local;
|
||||
use Appwrite\Storage\Device\Local;
|
||||
|
||||
class DeletesV1
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Network\Validators;
|
||||
namespace Appwrite\Network\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Network\Validators;
|
||||
namespace Appwrite\Network\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Devices;
|
||||
namespace Appwrite\Storage\Device;
|
||||
|
||||
use Exception;
|
||||
use Appwrite\Storage\Device;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Devices;
|
||||
namespace Appwrite\Storage\Device;
|
||||
|
||||
use Appwrite\Storage\Device;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Validators;
|
||||
namespace Appwrite\Storage\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Validators;
|
||||
namespace Appwrite\Storage\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Validators;
|
||||
namespace Appwrite\Storage\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Validators;
|
||||
namespace Appwrite\Storage\Validator;
|
||||
|
||||
use Exception;
|
||||
use Utopia\Validator;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Appwrite\Storage\Validators;
|
||||
namespace Appwrite\Storage\Validator;
|
||||
|
||||
use Utopia\Validator;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Network\Validators\CNAME;
|
||||
use Appwrite\Network\Validator\CNAME;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class CNAMETest extends TestCase
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Network\Validators\Origin;
|
||||
use Appwrite\Network\Validator\Origin;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class OriginTest extends TestCase
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Storage\Devices\Local;
|
||||
use Appwrite\Storage\Device\Local;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class LocalTest extends TestCase
|
|
@ -4,7 +4,7 @@ namespace Appwrite\Tests;
|
|||
|
||||
use Exception;
|
||||
use Appwrite\Storage\Storage;
|
||||
use Appwrite\Storage\Devices\Local;
|
||||
use Appwrite\Storage\Device\Local;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
Storage::addDevice('disk-a', new Local(__DIR__ . '/../../resources/disk-a'));
|
||||
|
@ -22,8 +22,8 @@ class StorageTest extends TestCase
|
|||
|
||||
public function testGetters()
|
||||
{
|
||||
$this->assertEquals(get_class(Storage::getDevice('disk-a')), 'Appwrite\Storage\Devices\Local');
|
||||
$this->assertEquals(get_class(Storage::getDevice('disk-b')), 'Appwrite\Storage\Devices\Local');
|
||||
$this->assertEquals(get_class(Storage::getDevice('disk-a')), 'Appwrite\Storage\Device\Local');
|
||||
$this->assertEquals(get_class(Storage::getDevice('disk-b')), 'Appwrite\Storage\Device\Local');
|
||||
|
||||
try {
|
||||
get_class(Storage::getDevice('disk-c'));
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Storage\Validators\FileName;
|
||||
use Appwrite\Storage\Validator\FileName;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FileNameTest extends TestCase
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Storage\Validators\FileSize;
|
||||
use Appwrite\Storage\Validator\FileSize;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FileSizeTest extends TestCase
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Storage\Validators\FileType;
|
||||
use Appwrite\Storage\Validator\FileType;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FileTypeTest extends TestCase
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use Appwrite\Storage\Validators\Upload;
|
||||
use Appwrite\Storage\Validator\Upload;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class UploadTest extends TestCase
|
Loading…
Reference in a new issue