Barry vd. Heuvel
2535f8e6ab
Fix tests and CS
2024-02-07 21:44:48 +01:00
Filip Iulian Pacurar
04c1a8d444
Support generating helper files for real-time facades ( #1455 )
...
* Support generating helper files for real-time facades
Add changelog entry for real-time facades support
Mention real-time facades support in readme
Fix code style
Import
* Remove useless assertions
We cannot 100% control the output file has only the real-time facades, anything else can be in the final output
2024-02-07 21:35:02 +01:00
PapaBear and Timo Frenzel
9d14b019f6
skip swoole, otherwise fatal error ( #1477 )
...
Co-authored-by: Timo Frenzel <[email protected] >
2024-02-07 21:19:43 +01:00
netpok
f4656256fc
Fix non-facade classes will result in no autocomplete ( #841 )
...
* Filter out non-facade base classes
* Remove Model as it is already skipped because it's not a facade
2024-02-07 21:06:31 +01:00
Markus Podar
a8b34ad228
Removed support for Laravel 8 and therefore for PHP < 8.0 ( #1504 )
...
* Removed support for Laravel 8 and therefore for PHP < 8.0
* Update php-cs-fixer to v3
* composer fix-style
2024-02-05 13:25:08 +01:00
Alies Lapatsin
9f5670b7e9
Bump Psalm version ( #1410 )
...
SSH facade removed from Laravel 5:
- https://github.com/laravel/framework/tree/v8.83.27/src/Illuminate/Support/Facades
- https://github.com/laravel/framework/tree/v9.48.0/src/Illuminate/Support/Facades
- https://github.com/laravel/framework/tree/10.x/src/Illuminate/Support/Facades
2023-02-04 22:04:01 +01:00
Daniël de Wit and Markus Podar
e71f3d5fc0
Check for traits recursively ( #1216 )
...
* Check for traits recursively
* Remove autoload bool from class_uses_recursive
* Add test
* Update src/Console/ModelsCommand.php
Co-authored-by: Markus Podar <[email protected] >
* Updated changelog
Co-authored-by: Markus Podar <[email protected] >
2021-06-20 10:18:14 +02:00
netpok
f7f7e9e65a
Add default values to array_merge ( #1184 )
2021-03-17 11:56:50 +01:00
Markus Podar
ae5d7708b7
Remove format and broken generateJsonHelper ( #1053 )
...
The JSON generate doesn't work, always generates an empty list.
I looked a bit around and seems changes around 3 years ago broke it.
Since there was no bug report ever about this, I conclude this feature
isn't used and suggest to remove it.
This also changes the config `filename` as there's no need for the
extension-less version and the format is gone too. This change is
backwards compatible as we just add back the `.php` in case it's missing
though users are encouraged to update it.
2020-12-04 09:54:50 +01:00
domkrm and Dominik Krämer
3a22b8daf6
Add better support for macros and mixins ( #1006 )
...
Co-authored-by: Dominik Krämer <[email protected] >
2020-09-06 07:58:13 +02:00
Markus Podar and Barry vd. Heuvel
764bc02b84
[CODESTYLE] Replace phpcs with php-cs-fixer ( #1030 )
...
* composer require --dev friendsofphp/php-cs-fixer:^2
* php-cs-fixer: ignore cache and custom local config file
* php-cs-fixer: initial config
* php-cs-fixer: replace commands in composer
* php-cs-fixer: add PSR12 "as good as it currently gets"
* php-cs-fixer: apply PSR12 to codebase
* tests: add workaround to keep unused imports for snapshot testing
* php-cs-fixer: apply no_unused_imports
* php-cs-fixer: apply array_syntax short
* php-cs-fixer: apply single_quote
* php-cs-fixer: switch ordered_imports sort_algorithm to alpha
Let's be opinionated here for consistency
* php-cs-fixer: split between non-tests and tests and share config
* php-cs-fixer: apply declare_strict_types for tests
* php-cs-fixer: apply fully_qualified_strict_types
* php-cs-fixer: apply space_after_semicolon
* php-cs-fixer: apply trailing_comma_in_multiline_array
* php-cs-fixer: apply trim_array_spaces
* php-cs-fixer: apply unary_operator_spaces
* php-cs-fixer: apply whitespace_after_comma_in_array
* php-cs-fixer: apply native_function_invocation
* php-cs-fixer: apply concat_space
* grumphp: reflect we're using phpcsfixer now
* composer remove --dev squizlabs/php_codesniffer
* gha: simplify fix-style approach
Not really necessary to remove packages and then manually prevent
unrelated commits creeping in
Co-authored-by: Barry vd. Heuvel <[email protected] >
2020-09-01 11:32:31 +02:00
Markus Podar
6cb0201476
Remove unnecessary version checks due to unsupported old Laravel/Lumen versions ( #983 )
...
- support for < L5.5 was dropped, so no need to check if it's >= Laravel 5.2
- for the same reason, the Lumen 5.0/5.1 check isn't necessary because only supporting Laravel 5.5 means we only support the Laravel 5.5 _components_ which means the minimum supported Lumen version is also 5.5 (per https://lumen.laravel.com/docs/master/releases#5.5.0 )
2020-06-28 22:14:44 +02:00
feek
4aa919c09f
chore: psr12 ( #964 )
2020-06-23 06:59:56 +02:00
feek and mr-feek
545298c44d
[Chore] Introduce psalm ( #962 )
...
* chore: introduce psalm
* chore: remove dead code
* chore: run psalm workflow
* chore: run psalm in grumphp
* normalize composer.json
* chore: analyse --> analyze
* chore: just remove psalm when running tests instead of worrying about dependency mismatch hell
Co-authored-by: mr-feek <[email protected] >
2020-06-22 20:28:59 +02:00
ZhangWei
f3e48cbcce
Test auth is binded before detect Auth driver ( #946 )
...
* Test `auth` is binded before detect Auth driver
some project may not need Auth service provider
* fix codingstyle
2020-06-06 22:28:00 +02:00
Chris Morrell
6c8e847430
Add support for factory()->create() return types ( #758 )
...
* Revert "Forked release"
* Initial factory builder support
* Oops — fixed tabs
* Revert "Forked release"
* Whitespace
* Reverted more code
* Whitespace
* More whitespace
* Fixed PHPCS line
2019-10-01 20:18:19 +02:00
Tim Philips
d00600d769
Include DocBloc’s from classes to allow deeper code inspection ( #745 )
...
* Add support to include DocBloc’s from classes to allow further code inspection
* Adjust for PSR2
* Additional fix for PSR2
2019-01-28 21:38:57 +01:00
ApolloPY
7905dd3926
if aliases not Redis, don't skip
2018-11-30 20:30:51 +08:00
Manabu Matsui
30e5300e49
Fix alias class existence determination
2018-09-14 10:16:13 +09:00
Sune Westphalen
76bd86dbaf
Added Validator and Gate facades for Lumen.
2018-01-23 13:56:22 +07:00
leo
46901d2c80
set include_fluent default to true ( #512 )
2017-06-08 12:19:59 +02:00
theMadness
75e1f22ec6
Decoupled from main app View Factory ( #475 )
2017-03-31 11:14:28 +02:00
Florian Lefèvre
b611cb5eff
Add namespaced aliases ( #456 )
...
* Add namespaced aliases
* Move aliases regouping logic in Generator
* Fix getValidAliases return type
2017-03-05 20:04:42 +01:00
Florian Lefèvre
525733122e
Add facades fullpath autocomplete ( #437 )
...
* Add method to retrieve namespace of extended class
* Regroup classes by namespace of the class they extends
* Restore facades shortnames
2017-02-01 07:21:31 +01:00
Jackey Cheung
105f14a50d
Add Fluent helpers (using config option) ( #404 )
...
* add fluent option to Generator
* add fluent to helper output
* add fluent option to config
* typo
2016-11-15 09:21:23 +01:00
Andrew Ellis
ad800d197f
and one more blank line fix for travis-ci
2016-08-19 12:39:16 -06:00
Barry vd. Heuvel
bae462604e
Add test config, CS rules and fix CS
2016-06-08 21:36:25 +02:00
Chris Nanney
d818b72f82
Look for additional facade aliases in app config array
...
In my Lumen app, I load my providers and aliases from a `config/app.php` file like in Laravel. Maybe that is uncommon, but this simple PR will include those aliases as well if any are present.
2016-03-29 14:56:12 -05:00
Vedmant
606183ea12
Added support for default storage driver shortcuts, eg. Storage::exists('file.jpg');
2016-03-03 16:33:28 +02:00
Barry vd. Heuvel
7762e07f0a
Use new provider config
...
Fixes #274 , #324
2016-03-02 10:47:25 +01:00
Vincent Labreche
0c4c55f349
Add support for Lumen 5.0, 5.1 and 5.2+
2016-01-22 08:30:36 -05:00
Barry vd. Heuvel
60e642e881
Revert "Don't use force aliases loading"
2016-01-21 15:55:29 +01:00
Dmytro Kulyk
74bac1a4e9
Don't use force aliases loading
...
Another autoloader throw exception if aliases not exists.
2016-01-11 13:45:41 +02:00
Propaganistas
dee3878566
Fix Auth driver detection in Laravel 5.2
2016-01-06 20:31:08 +01:00
Barry vd. Heuvel
e3de462538
Resolve user model at runtime
...
Fixes #274
2015-10-22 14:26:11 +02:00
Barry vd. Heuvel
38a97cf07c
Swap facade/alias
...
See #202
2015-08-18 10:57:06 +02:00
Barry vd. Heuvel
0d13a51ff5
Use preset list of aliases in Lumen
2015-08-10 21:00:31 +02:00
flynsarmy
fb3280eaff
Add support for October CMS config
2015-02-12 19:03:29 +10:00
Barry vd. Heuvel
317ef794a5
Check for correct facades
2015-02-04 09:12:01 +01:00
Barry vd. Heuvel
5c846ca16a
Merge pull request #155 from Flynsarmy/authMethodExists
...
Check for driver method on Auth facade
2015-02-04 07:41:52 +01:00
Barry vd. Heuvel
f12c785688
Skip Redis if not available
2015-01-28 10:04:48 +01:00
Barry vd. Heuvel
ab50c245d0
Update config/resources for L5
2015-01-28 09:34:45 +01:00
flynsarmy
ab85ca4c5a
Check for driver method on Auth facade
2015-01-28 14:31:20 +10:00
Barry vd. Heuvel
e2b59c6cb5
Use config the get User model
...
See #136
2014-11-29 13:11:10 +01:00
Barry vd. Heuvel
6c18c3f39a
Add json format
2014-08-19 09:49:07 +02:00
alxy
7f335274bf
Fix a copy paste error (probably)
...
I don't use this helper, however, I guess that line wasnt correct.
2014-08-11 10:30:52 +02:00
Barry vd. Heuvel
91033293b9
Tweak layout
2014-08-06 20:30:42 +02:00
Barry vd. Heuvel
e9bc9347cc
Cleanup
2014-08-06 19:27:22 +02:00
Barry vd. Heuvel
70ab315092
Detect interfaces/drivers
2014-08-06 19:03:34 +02:00
Barry vd. Heuvel
8dcc74a95f
Add magic methods
2014-08-06 13:04:52 +02:00