Skip to content

Commit 10d01d5

Browse files
authored
Merge pull request #39 from hypervel/feature/facade-documents
facade documents
2 parents c41d5c7 + f98d66c commit 10d01d5

File tree

14 files changed

+55
-270
lines changed

14 files changed

+55
-270
lines changed

bin/generate-facade-docs.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
cp composer.json composer.json.bak
4+
cp composer.lock composer.lock.bak
5+
6+
composer config repositories.facade-documenter vcs [email protected]:hypervel/facade-documenter.git
7+
composer require --dev hypervel/facade-documenter:dev-main
8+
find src/support/src/Facades -type f -name '*.php' -printf '%f\n' | sort | grep -v Facade | sed -E 's/(.+)\.php/Hypervel\\\\Support\\\\Facades\\\\\1/' | xargs php -f vendor/bin/facade.php
9+
10+
mv composer.json.bak composer.json
11+
mv composer.lock.bak composer.lock
12+
composer install

src/console/src/Scheduling/Schedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use RuntimeException;
2828

2929
/**
30-
* @mixin PendingEventAttributes
30+
* @mixin \Hypervel\Console\Scheduling\PendingEventAttributes
3131
*/
3232
class Schedule
3333
{

src/support/src/Facades/App.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @method static string basePath(string $path = '')
1616
* @method static string resourcePath(string $path = '')
1717
* @method static string viewPath(string $path = '')
18+
* @method static string storagePath(string $path = '')
1819
* @method static string joinPaths(string $basePath, string $path = '')
1920
* @method static string|bool environment(array|string ...$environments)
2021
* @method static bool isLocal()
@@ -28,6 +29,8 @@
2829
* @method static \Hypervel\Support\ServiceProvider resolveProvider(string $provider)
2930
* @method static bool isBooted()
3031
* @method static void boot()
32+
* @method static void booting(callable $callback)
33+
* @method static void booted(callable $callback)
3134
* @method static void abort(int $code, string $message = '', array $headers = [])
3235
* @method static array getLoadedProviders()
3336
* @method static bool providerIsLoaded(string $provider)

src/support/src/Facades/Auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* @method static string getDefaultDriver()
1717
* @method static void shouldUse(string|null $name)
1818
* @method static void setDefaultDriver(string $name)
19+
* @method static \Hypervel\Auth\AuthManager viaRequest(string $driver, callable $callback)
1920
* @method static \Closure userResolver()
2021
* @method static \Hypervel\Auth\AuthManager resolveUsersUsing(\Closure $userResolver)
2122
* @method static array getGuards()

src/support/src/Facades/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Hypervel\Filesystem\Filesystem;
88

99
/**
10+
* @method static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)
1011
* @method static bool exists(string $path)
1112
* @method static string get(string $path, bool $lock = false)
1213
* @method static string sharedGet(string $path)

src/support/src/Facades/Http.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* @method static \Hypervel\HttpClient\Factory registerConnection(string $name, array $config = [])
3535
* @method static \GuzzleHttp\ClientInterface getClient(string|null $connection, \GuzzleHttp\HandlerStack $handlerStack, array|null $config = null)
3636
* @method static \GuzzleHttp\ClientInterface createClient(\GuzzleHttp\HandlerStack $handlerStack)
37-
* @method static array getConfig(string $name)
3837
* @method static array getConnectionConfigs()
3938
* @method static array getConnectionConfig(string $name)
4039
* @method static \Hypervel\HttpClient\Factory setConnectionConfig(string $name, array $config)

src/support/src/Facades/Process.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@
1616
* @method static \Hypervel\Process\PendingProcess idleTimeout(int $timeout)
1717
* @method static \Hypervel\Process\PendingProcess forever()
1818
* @method static \Hypervel\Process\PendingProcess env(array $environment)
19-
* @method static \Hypervel\Process\PendingProcess input(\Traversable|resource|string|int|float|bool|null $input)
19+
* @method static \Hypervel\Process\PendingProcess input(null|bool|float|int|resource|string|\Traversable $input)
2020
* @method static \Hypervel\Process\PendingProcess quietly()
2121
* @method static \Hypervel\Process\PendingProcess tty(bool $tty = true)
2222
* @method static \Hypervel\Process\PendingProcess options(array $options)
2323
* @method static \Hypervel\Process\Contracts\ProcessResult run(array|string|null $command = null, callable|null $output = null)
24-
* @method static \Hypervel\Process\InvokedProcess start(array|string|null $command = null, callable|null $output = null)
25-
* @method static bool supportsTty()
24+
* @method static \Hypervel\Process\Contracts\InvokedProcess start(array|string|null $command = null, callable|null $output = null)
2625
* @method static \Hypervel\Process\PendingProcess withFakeHandlers(array $fakeHandlers)
27-
* @method static \Hypervel\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
28-
* @method static \Hypervel\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
26+
* @method static \Hypervel\Process\PendingProcess|mixed when(null|\Closure|mixed $value = null, null|callable $callback = null, null|callable $default = null, null|\Closure|mixed $value = null)
27+
* @method static \Hypervel\Process\PendingProcess|mixed unless(null|\Closure|mixed $value = null, null|callable $callback = null, null|callable $default = null, null|\Closure|mixed $value = null)
2928
* @method static \Hypervel\Process\FakeProcessResult result(array|string $output = '', array|string $errorOutput = '', int $exitCode = 0)
3029
* @method static \Hypervel\Process\FakeProcessDescription describe()
3130
* @method static \Hypervel\Process\FakeProcessSequence sequence(array $processes = [])
@@ -43,11 +42,10 @@
4342
* @method static \Hypervel\Process\Contracts\ProcessResult pipe(callable|array $callback, callable|null $output = null)
4443
* @method static \Hypervel\Process\ProcessPoolResults concurrently(callable $callback, callable|null $output = null)
4544
* @method static \Hypervel\Process\PendingProcess newPendingProcess()
46-
* @method static void macro(string $name, object|callable $macro)
45+
* @method static mixed macroCall(string $method, array $parameters)
46+
* @method static void macro(string $name, callable|object $macro)
4747
* @method static void mixin(object $mixin, bool $replace = true)
4848
* @method static bool hasMacro(string $name)
49-
* @method static void flushMacros()
50-
* @method static mixed macroCall(string $method, array $parameters)
5149
*
5250
* @see \Hypervel\Process\PendingProcess
5351
* @see \Hypervel\Process\Factory

src/support/src/Facades/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @method static mixed getJobExpiration(mixed $job)
4949
* @method static void createPayloadUsing(callable|null $callback)
5050
* @method static \Psr\Container\ContainerInterface getContainer()
51-
* @method static void setContainer(\Psr\Container\ContainerInterface $container)
51+
* @method static \Hypervel\Queue\Queue setContainer(\Psr\Container\ContainerInterface $container)
5252
* @method static \Hypervel\Support\Testing\Fakes\QueueFake except(array|string $jobsToBeQueued)
5353
* @method static void assertPushed(\Closure|string $job, callable|int|null $callback = null)
5454
* @method static void assertPushedOn(string|null $queue, \Closure|string $job, callable|null $callback = null)

0 commit comments

Comments
 (0)