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

311 commits

Author SHA1 Message Date
Samuel Štancl
e41a469510 Remove defaulting to 'default' DB connection 2019-08-18 23:25:10 +02:00
Samuel Štancl
b12b9c3a54
[1.8.0] Tenant redirect (#103) 2019-08-18 12:48:10 +02:00
Samuel Štancl
5edf582269 Make DB storage driver prefix sqlite DBs with database_path() 2019-08-17 21:56:30 +02:00
Samuel Štancl
f87c2b69ec Default to default DB 2019-08-17 21:25:53 +02:00
stancl
29c8d5dab4 Apply fixes from StyleCI 2019-08-17 14:33:59 +00:00
Samuel Štancl
760817529e Merge branch '1.x' of github.com:stancl/tenancy into 1.x 2019-08-17 16:33:49 +02:00
Samuel Štancl
47fb158b59 Use MySQL by default; create migrations/tenant in tenancy:install 2019-08-17 16:33:22 +02:00
stancl
fd66537e7f Apply fixes from StyleCI 2019-08-17 13:25:48 +00:00
Samuel Štancl
be077ae73c Add the option to specify connection in DatabaseManager 2019-08-17 15:25:39 +02:00
Samuel Štancl
824d299dcd wip 2019-08-17 14:51:03 +02:00
Samuel Štancl
86fd919adf Except data 2019-08-17 14:46:15 +02:00
Samuel Štancl
08148225eb Merge branch '1.x' of github.com:stancl/tenancy into 1.x 2019-08-17 14:41:38 +02:00
Samuel Štancl
542fc888bc Set 'data' to '{}' 2019-08-17 14:41:33 +02:00
Samuel Štancl
40fa69932b
[1.7.0] Fix Redis scan (#97)
* Fix Redis scan

* Fix keys issue
2019-08-17 14:11:49 +02:00
Samuel Štancl
7bcad47186 Updated comment 2019-08-17 10:03:41 +02:00
Samuel Štancl
6095696355 Fix invoke test 2019-08-16 18:54:25 +02:00
Samuel Štancl
dc96931a76 merge 2019-08-16 18:32:06 +02:00
Samuel Štancl
89c7289b66 Switch order of conditions 2019-08-16 18:26:18 +02:00
stancl
84890cdd1e Apply fixes from StyleCI 2019-08-16 16:21:59 +00:00
Samuel Štancl
bbafc9d8e2 is_array check 2019-08-16 18:20:34 +02:00
Samuel Štancl
3c9ead6aac default value 2019-08-16 18:10:34 +02:00
Samuel Štancl
fd79e0aec3 Fix illegal offset 2019-08-16 18:04:54 +02:00
Samuel Štancl
1216addd1f Improve get() 2019-08-16 17:55:40 +02:00
Samuel Štancl
2fe464a1f9 Use only 2019-08-16 16:01:39 +02:00
Samuel Štancl
9df78eb9c2
[1.7.0] Add DB storage driver (#82) 2019-08-16 14:36:49 +02:00
Samuel Štancl
674f4b3f9a
[1.7.0] Install command (#95) 2019-08-15 19:16:25 +02:00
Samuel Štancl
aca5567c10 Add empty array default 2019-08-14 22:55:18 +02:00
stancl
155ef0da5a Apply fixes from StyleCI 2019-08-14 20:17:04 +00:00
Samuel Štancl
4aa35322da Add event prevents, Tenant facade 2019-08-14 22:16:51 +02:00
Samuel Štancl
1a88cad4d6
[1.7.0] Fix Events system (#94)
* Add TenantManagerEvents

* Apply fixes from StyleCI

* Fix typos, add tests

* end() events

* Travis should be failing

* Uncomment ending
2019-08-14 17:32:33 +02:00
Samuel Štancl
c1df467601
[1.7.0] Add Events system (#93)
* Add TenantManagerEvents

* Apply fixes from StyleCI

* Fix typos, add tests

* end() events
2019-08-14 17:15:47 +02:00
Samuel Štancl
d7358c588c
[1.7.0] Add the option to set values & db name during tenant creation (#86)
* Add the option to set values & db name during tenant creation

* Apply fixes from StyleCI

* Add tests

* Apply fixes from StyleCI

* Rewrite conditional for clarity
2019-08-13 19:16:00 +02:00
Samuel Štancl
769ec16f89
Fix #89 (#90) 2019-08-13 18:36:41 +02:00
Samuel Štancl
490c776bc8
Use ?? instead of ?: 2019-08-10 14:43:37 +02:00
Samuel Štancl
15f09e59df
[1.7.0] Add tenants:run (#81)
* wip

* Apply fixes from StyleCI

* first implementation

* Apply fixes from StyleCI

* Add support for arguments and options

* Apply fixes from StyleCI

* Write docs, add support for = in arg/opt value

* Apply fixes from StyleCI

* add $ [ci skip]
2019-08-09 19:06:00 +02:00
stancl
8fd32a67a9 Apply fixes from StyleCI 2019-08-04 18:04:35 +00:00
Samuel Štancl
0dc8c80a02 Fix Redis scan for predis, make phpunit use multiple configs (e.g. different Redis drivers) 2019-08-04 20:04:25 +02:00
Samuel Štancl
eceacd9422
Apply fixes from StyleCI (#80) 2019-08-02 20:01:10 +02:00
Samuel Štancl
92ebc1f01b
Add support for global cache (#78) 2019-07-30 21:05:30 +02:00
Samuel Štancl
a3f37b7f77 Fix #71 2019-07-25 23:26:36 +02:00
Samuel Štancl
66a4fe9630 Fix #73
The domain was wrapped in "".
2019-07-25 11:19:52 +02:00
Samuel Štancl
353f7afb82
Add tenancy()->end() (#68) 2019-07-13 11:38:07 +02:00
Samuel Štancl
b2e2460c34
Add PostgreSQL DB driver (#52) 2019-07-12 23:09:29 +02:00
Samuel Štancl
f2819adcd2 Merge branch '1.x' of github.com:stancl/tenancy into 1.x 2019-07-12 23:05:29 +02:00
Samuel Štancl
a3ff6fbd93 fix #63 (wrong return type docblock) 2019-07-12 23:05:11 +02:00
Samuel Štancl
dc30354699
Dockerize phpunit (#66) 2019-07-12 21:44:26 +02:00
Samuel Štancl
1b6759084f
Add Predis support (#59)
* wip

* Add Predis support

* Enable phpredis extension only for some builds

* Add note about phpredis

* Fix if command

* Revert travis changes & add a version check to predis tests
2019-07-03 14:48:55 +02:00
Samuel Štancl
e7b5a77a6b
Data separation tests (#58)
* Add purge()

* Add DataSeparationTest
2019-07-01 12:28:22 +02:00
Samuel Štancl
97ec172fd4
Specify namespace on global functions (fix #35) (#36)
* Specify namespace on global functions (fix #35)

* merge

* Revert some \ additions

* small fixes
2019-04-24 17:33:41 +02:00
Samuel Štancl
35abb6191d
Fix Redis scan for 5.8 (#46)
* Fix Redis scan for 5.8

* Add comments [ci skip]
2019-04-24 16:53:43 +02:00