1
0
Fork 0
mirror of synced 2024-05-21 05:02:37 +12:00

Updated namespace conventions

This commit is contained in:
Eldad Fux 2020-06-11 22:36:10 +03:00
parent c2deb11361
commit 1a60a6a8fe
26 changed files with 33 additions and 31 deletions

View file

@ -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

View file

@ -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;

View file

@ -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';

View file

@ -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;

View file

@ -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 = [];

View file

@ -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;

View file

@ -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>

View file

@ -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';

View file

@ -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
{

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Network\Validators;
namespace Appwrite\Network\Validator;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Network\Validators;
namespace Appwrite\Network\Validator;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Devices;
namespace Appwrite\Storage\Device;
use Exception;
use Appwrite\Storage\Device;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Devices;
namespace Appwrite\Storage\Device;
use Appwrite\Storage\Device;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Validators;
namespace Appwrite\Storage\Validator;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Validators;
namespace Appwrite\Storage\Validator;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Validators;
namespace Appwrite\Storage\Validator;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Validators;
namespace Appwrite\Storage\Validator;
use Exception;
use Utopia\Validator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\Storage\Validators;
namespace Appwrite\Storage\Validator;
use Utopia\Validator;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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'));

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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