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

49 commits

Author SHA1 Message Date
PHP CS Fixer
020039bf89 Fix code style (php-cs-fixer) 2022-09-01 17:07:17 +00:00
Samuel Štancl
f941df3a82 minor improvements for phpstan 2022-09-01 19:06:54 +02:00
Samuel Štancl
8af354c20e get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
Samuel Štancl
55d0a9ab87 misc improvements - stronger types, exception refactor 2022-08-26 21:35:17 +02:00
Samuel Štancl
931c76d697
Pull 3.x changes into master (#922)
* exclude master from CI

* Add space after 'up' in 'docker-compose up-d' (#900)

* Fix ArgumentCountError on the TenantAssetsController (#894)

* Fix ArgumentCount exception on the TenantAssetsController when no `$path` is provided

* CS

* CS

* Handle null case explicitly

* code style

Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>

* Add support for nested tenant config override (#920)

* feat: add support for nested tenant config override

* test: ensure nested tenant values are mapped

* Update TenantConfigTest.php

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Bram Wubs <megawubs@users.noreply.github.com>
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: George Bishop <email.georgebishop@gmail.com>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
2022-08-22 17:59:43 +02:00
beezerk23
233a1222bf
feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail… (#679)
* feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail method and just call it in case of an exception

* throw correct exception when `$originalOnFail()` is null

* Update DomainTest.php

* convert test to pest and renamed

* Update tests/DomainTest.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-25 18:37:52 +02:00
Abrar Ahmad
97ab483173
Completing PR #881 (#902)
* install PHP CS Fixer

* Fix styling

* remove StyleCI config

* use config from archtechx/template

* Fix styling

* added `php-cs-fixer`

* Update .php-cs-fixer.php

* added GitHub token

* Update ci.yml

* Update ci.yml

* Update ci.yml

* php-cs-fixer workflow same as template

Co-authored-by: Erik Gaal <me@erikgaal.nl>
Co-authored-by: erikgaal <erikgaal@users.noreply.github.com>
2022-07-20 15:28:45 +02:00
Frederic Habich
2726f07bca
fixed typo (#766)
fixed typo within description 'searhced' => 'searched'
2021-12-22 13:24:07 +01:00
mlajx
1a48725aef
Add static variable for MiddlewareUniversalName. (#581)
* Added middlewareUniversalName static variable to extends and customize the UniversalRoutes class

* change the variable name and undo the code style
2021-01-15 23:31:31 +01:00
Samuel Štancl
b362c16f89 TTL argument 2020-06-29 12:21:02 +02:00
Samuel Štancl
ebec926410 Telescope v3 tags 2020-06-14 14:18:49 +02:00
Samuel Štancl
43d36205b8 Fix tests 2020-06-03 13:42:17 +02:00
Samuel Štancl
0378f142ec Minor changes 2020-06-03 13:32:35 +02:00
stancl
21a2b3f01d Apply fixes from StyleCI 2020-05-30 15:15:07 +00:00
Samuel Štancl
6dad6ce49a Allow array values for Tenant Config
Closes #412
2020-05-30 17:14:56 +02:00
stancl
d94ff22170 Apply fixes from StyleCI 2020-05-26 11:25:35 +00:00
Samuel Štancl
ed200ab733 Universal routes 2020-05-26 13:25:24 +02:00
stancl
6955512a6b Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
Samuel Štancl
2c1cc41b97 Telescope tags 2020-05-21 18:05:02 +02:00
Samuel Štancl
05d6383b99 Session scoping & tenant() cleanup 2020-05-15 11:07:42 +02:00
Samuel Štancl
10a5b80d44 User impersonation 2020-05-15 07:30:57 +02:00
Samuel Štancl
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00
Samuel Štancl
89936187ce Rewrite old tests 2020-05-12 23:22:40 +02:00
Samuel Štancl
c2c90ff755
[3.x] Use static properties instead of config for features (#391)
* Use static properites instead of config for features

* update tests
2020-05-03 18:12:40 +02:00
Samuel Štancl
60665517a0
[v3] Rename tenant redirect macro (#389)
* [v3] Rename tenant redirect macro

* update tests
2020-05-03 17:59:59 +02:00
Josh
d990281309
Fix for Initialized being called as function error (#373)
Co-authored-by: Josh Young <josh@vertogroup.com.au>
2020-04-27 16:04:35 +02:00
Samuel Štancl
94e647c952
Return $tags when route is empty 2020-04-24 04:10:25 +02:00
Samuel Štancl
5947f14484 Add tenancy()->initialized() check 2020-04-23 20:15:08 +02:00
Samuel Štancl
56903d20bf Use Telescope tags on universal routes too - fix #346 2020-04-23 19:08:54 +02:00
Samuel Štancl
0edb751e26
Update config key 2019-11-06 18:02:12 +01:00
Samuel Štancl
31c9930c93
[2.2.0] Timestamps (#213)
* Timestamps

* Apply fixes from StyleCI

* Add void typehint

* wip

* Fix tests

* Apply fixes from StyleCI
2019-11-04 17:56:08 +01:00
Chris Brown
14843b4291 Refactor Config\Repository dependencies to use Contract (#157)
Fixes #156
2019-10-08 21:34:49 +02:00
Samuel Štancl
6d00b9b866 Use $data instead of get() in TenantConfig 2019-10-04 22:32:43 +02:00
Samuel Štancl
eabac3d09f
Replace Foundation\Application dependencies with Cache\Repository wherever possible (#149) 2019-09-30 17:10:39 +02:00
Samuel Štancl
56a2bdf5af
[2.x] Tenant config (#145)
* TenantConfig first draft

* Apply fixes from StyleCI

* Add unsetTenantConfig

* Fix DB storage driver bug, add regression test (tenant_data_can_be_set_during_creation)

* Add tests & config keys

* Apply fixes from StyleCI
2019-09-30 16:52:46 +02:00
Samuel Štancl
dcc9bda758 Default tag callback for Telescope 2019-09-29 11:50:32 +02:00
Samuel Štancl
c475e7a43d Fix transactions 2019-09-21 13:54:02 +02:00
Samuel Štancl
c9903cd43c Clean up 2019-09-19 20:32:09 +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
a9c37d1535 wip 2019-09-16 18:09:09 +02:00
Samuel Štancl
a7bb709bd4 Fix first test 2019-09-15 21:53:03 +02:00
Samuel Štancl
0fd1d82c68 TenantModel putMany 2019-09-15 11:01:24 +02:00
Samuel Štancl
958651099a event callback -> event listener 2019-09-11 19:18:53 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +02:00
Samuel Štancl
f6717fa5c9 Feature -> FeatureProvider 2019-09-08 15:33:58 +02:00
Samuel Štancl
29ad8e60f9 TelescopeTags add user callback 2019-09-08 11:35:00 +02:00
stancl
805644f85b Apply fixes from StyleCI 2019-09-08 09:11:59 +00:00
Samuel Štancl
61739dc5fc Add 'Features' 2019-09-08 11:11:44 +02:00