1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 15:54:03 +00:00
Commit graph

60 commits

Author SHA1 Message Date
Samuel Štancl
853fdb19fa Only put to storage when persisted 2019-10-28 15:01:14 +01:00
Samuel Štancl
869ac32983
[2.2.0] [WIP] Add functionality (#206)
* TenantDatabaseDoesNotExistException

* Apply fixes from StyleCI

* User post-creation callbacks

* Rename method

* postCreationActions

* pass $tenant as parameter

* pass $tenant to async actions

* WIP findBy()

* findBy\* ForwardsCalls

* Apply fixes from StyleCI

* findBy DB storage driver

* Redis  SD TODO message

* Apply fixes from StyleCI

* Fix chained jobs

* WIP event system

* import str

* instanceof closure check

* findBy instead of find

* Tenant -> Tenants

* dots

* Use DB hooks instead of a SC key

* Don't allow  callables for queue chain

* CanDeleteKeys interface

* Apply fixes from StyleCI

* CanFindByAnyKey interface

* Apply fixes from StyleCI

* Ditch models for custom repositories

* Resolve circular dependency

* Apply fixes from StyleCI

* Fix tests

* Apply fixes from StyleCI

* FutureTest

* Prefix tenant events with 'tenant.'

* Event listener arguments test
2019-10-27 21:10:41 +01:00
Samuel Štancl
a1270189da
[2.1.0] Tenant Run (#163)
* $tenant->run()

* Add assertion
2019-10-11 21:02:54 +02:00
Samuel Štancl
eea5ec908e Update docblock 2019-10-04 23:17:14 +02:00
Samuel Štancl
e21f5ad76f Fix PreventAccess middleware 2019-09-22 17:17:38 +02:00
Samuel Štancl
46609c5b0d DB transactions 2019-09-21 13:27:26 +02:00
Samuel Štancl
7e40c4188d Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-09-21 11:11:45 +02:00
Samuel Štancl
eb6cba8f1a Create MySQL/PostgreSQL DBs while using sqlite as the central DB driver 2019-09-21 11:11:36 +02:00
stancl
a27585cb47 Apply fixes from StyleCI 2019-09-20 18:19:04 +00:00
Samuel Štancl
1e6b21cfd4 Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-09-20 20:18:53 +02:00
Samuel Štancl
509d00f9f3 Add docblocks 2019-09-20 20:14:58 +02:00
stancl
6faac920c9 Apply fixes from StyleCI 2019-09-20 17:44:18 +00:00
Samuel Štancl
93fc961b34 Tenant::with 2019-09-20 19:44:05 +02:00
Samuel Štancl
61cc0d9364 Update tenant tests 2019-09-20 19:24:02 +02:00
Samuel Štancl
c9903cd43c Clean up 2019-09-19 20:32:09 +02:00
Samuel Štancl
6b0ec1b554 Passing tests with DB storage driver 2019-09-18 20:08:30 +02:00
Samuel Štancl
12c05c0af6 Fix some tests 2019-09-18 19:48:15 +02:00
Samuel Štancl
1f88a1ff94 updateTenant DB storage driver 2019-09-18 18:11:41 +02:00
Samuel Štancl
9bb56c1b30 Fix feature bootstrapping 2019-09-18 18:02:14 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
524530c8d5 TenantDatabaseManagerTest fully passes now 2019-09-17 18:57:19 +02:00
Samuel Štancl
5e9b421aa6 Fix Tenant DB manager tests 2019-09-17 17:59:40 +02:00
Samuel Štancl
50a77ee826 Fix some tests 2019-09-16 17:36:32 +02:00
Samuel Štancl
67bfb20e96 Unique ID generator 'handle' -> 'generate' 2019-09-16 16:59:18 +02:00
stancl
359766ccfa Apply fixes from StyleCI 2019-09-15 15:44:41 +00:00
Samuel Štancl
c65b6839ff Tenant-specific connections, some work to get tests running 2019-09-15 17:44:26 +02:00
Samuel Štancl
e25a01a997 TenantStorageException 2019-09-15 12:16:45 +02:00
Samuel Štancl
0fd1d82c68 TenantModel putMany 2019-09-15 11:01:24 +02:00
stancl
2355171c86 Apply fixes from StyleCI 2019-09-15 07:35:18 +00:00
Samuel Štancl
2657df5a88 delete() method on Tenant 2019-09-15 09:35:06 +02:00
Samuel Štancl
8bb13c7159 Go back to public constructor 2019-09-15 09:28:36 +02:00
Samuel Štancl
e69a8f597f Private Tenant constructor 2019-09-15 09:24:38 +02:00
Samuel Štancl
7a0154bf8e Get tests to run 2019-09-11 21:11:40 +02:00
Samuel Štancl
445b2650cf ID generation 2019-09-11 19:25:30 +02:00
Samuel Štancl
958651099a event callback -> event listener 2019-09-11 19:18:53 +02:00
Samuel Štancl
69db512d30 Storage drivers WIP 2019-09-11 14:32:13 +02:00
stancl
7eba041509 Apply fixes from StyleCI 2019-09-08 15:24:12 +00:00
Samuel Štancl
4872197fb6 TenantManager storage 2019-09-08 17:18:31 +02:00
Samuel Štancl
b0d119753d Remove some todos 2019-09-08 14:40:49 +02:00
Samuel Štancl
04b4e0644f WIP DatabaseManager 2019-09-08 13:46:07 +02:00
Samuel Štancl
6b716e5345 Use a nicer way to bind the current tenant 2019-09-07 19:46:45 +02:00
Samuel Štancl
0ac7fb74d6 wip 2019-09-07 16:40:45 +02:00
Samuel Štancl
d3712dfacc Events 2019-09-07 16:11:38 +02:00
Samuel Štancl
87916bd8e5 Save makes the Tenant instance persisted 2019-09-06 18:59:40 +02:00
Samuel Štancl
f04ca349bd Tenant contract, Tenancy bootstrappers, drop predis 2019-09-06 18:51:34 +02:00
Samuel Štancl
98cb49b1c0 Merge 2019-09-05 19:27:20 +02:00
Samuel Štancl
41d8bb7e09 DatabaseManager WIP 2019-09-05 19:26:29 +02:00
stancl
e2b6e6d73c Apply fixes from StyleCI 2019-09-04 18:25:52 +00:00
Samuel Štancl
696cc8ba9a WIP TenantManager 2019-09-04 20:25:44 +02:00
Samuel Štancl
96e8dec5eb Add Tenant object 2019-09-04 19:39:24 +02:00