1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 23:14:03 +00:00
tenancy/src/Events
Samuel Štancl 7bacc50b27
[4.x] Storage::url() support (modified #689) (#909)
* This adds support for tenancy aware  Storage::url() method

* Trigger CI build

* Fixed Link command for Laravel v6, added StorageLink Events, more StorageLink tests, added RemoveStorageSymlinks Job, added Storage Jobs to TenancyServiceProvider stub, renamed misleading config example.

* Fix typo

* Fix code style (php-cs-fixer)

* Update config comments

* Format code in Link command, make writing more concise

* Change "symLinks" to "symlinks"

* Refactor Link command

* Fix test name typo

* Test fetching files using the public URL

* Extract Link command logic into actions

* Fix code style (php-cs-fixer)

* Check if closure is null in CreateStorageSymlinksAction

* Stop using command terminology in CreateStorageSymlinksAction

* Separate the Storage::url() test cases

* Update url_override comments

* Remove afterLink closures, add types, move actions, add usage explanation to the symlink trait

* Fix code style (php-cs-fixer)

* Update public storage URL test

* Fix issue with using str()

* Improve url_override comment, add todos

* add todo comment

* fix docblock style

* Add link command tests back

* Add types to $tenants in the action handle() methods

* Fix typo, update variable name formatting

* Add tests for the symlink actions

* Change possibleTenantSymlinks not to prefix the paths twice while tenancy is initialized

* Fix code style (php-cs-fixer)

* Stop testing storage directory existence in symlink test

* Don't specify full namespace for Tenant model annotation

* Don't specify full namespace in ActionTest

* Remove "change to DI" todo

* Remove possibleTenantSymlinks return annotation

* Remove symlink-related jobs, instantiate and use actions

* Revert "Remove symlink-related jobs, instantiate and use actions"

This reverts commit 547440c887.

* Add a comment line about the possible tenant symlinks

* Correct storagePath and publicPath variables

* Revert "Correct storagePath and publicPath variables"

This reverts commit e3aa8e2086.

* add a todo

Co-authored-by: Martin Vlcek <martin@dontfreakout.eu>
Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2022-09-28 05:09:45 +02:00
..
Contracts Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
BootstrappingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingStorageSymlink.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
CreatingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseMigrated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseRolledBack.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseSeeded.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DeletingDatabase.php Rolling back & deleting DB events 2020-05-24 20:52:50 +02:00
DeletingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DeletingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainSaved.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainUpdated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
EndingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
InitializingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
MigratingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
RemovingStorageSymlink.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
RevertedToCentralContext.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
RevertingToCentralContext.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
RollingBackDatabase.php Rolling back & deleting DB events 2020-05-24 20:52:50 +02:00
SavedDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavedTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SeedingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
StorageSymlinkCreated.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
StorageSymlinkRemoved.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
SyncedResourceChangedInForeignDatabase.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
SyncedResourceSaved.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
TenancyBootstrapped.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenancyEnded.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenancyInitialized.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantSaved.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantUpdated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
UpdatingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
UpdatingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00