-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"require": { | ||
"bear/package": "^1.16" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"FakeVendor\\Compile\\": "src" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FakeVendor\MinApp\Module; | ||
|
||
use BEAR\Resource\ResourceInterface; | ||
use BEAR\Sunday\Extension\Application\AbstractApp; | ||
use BEAR\Sunday\Extension\Application\AppInterface; | ||
use BEAR\Sunday\Extension\Error\ErrorInterface; | ||
use BEAR\Sunday\Extension\Error\ThrowableHandlerInterface; | ||
use BEAR\Sunday\Extension\Router\RouterInterface; | ||
use BEAR\Sunday\Extension\Transfer\HttpCacheInterface; | ||
use BEAR\Sunday\Extension\Transfer\TransferInterface; | ||
use Ray\Di\Di\Inject; | ||
|
||
class App implements AppInterface | ||
{ | ||
public function __construct( | ||
public HttpCacheInterface $httpCache, | ||
public RouterInterface $router, | ||
public TransferInterface $responder, | ||
public ResourceInterface $resource, | ||
public ErrorInterface $error | ||
){ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FakeVendor\MinApp\Module; | ||
|
||
use BEAR\Package\PackageModule; | ||
use FakeVendor\HelloWorld\Auth; | ||
use FakeVendor\HelloWorld\FakeDep; | ||
use FakeVendor\HelloWorld\FakeDepInterface; | ||
use FakeVendor\HelloWorld\FakeFoo; | ||
use FakeVendor\HelloWorld\Module\Provider\AuthProvider; | ||
use FakeVendor\HelloWorld\NullInterceptor; | ||
use FakeVendor\HelloWorld\Resource\Page\Dep; | ||
use Ray\Di\AbstractModule; | ||
|
||
class AppModule extends AbstractModule | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function configure() | ||
{ | ||
$this->install(new PackageModule()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FakeVendor\MinApp\Resource\Page; | ||
|
||
use BEAR\Resource\ResourceObject; | ||
use Psr\Log\LoggerInterface; | ||
|
||
class Index extends ResourceObject | ||
{ | ||
public function __construct(public LoggerInterface $logger) | ||
{ | ||
} | ||
public function onGet(): static | ||
{ | ||
return $this; | ||
} | ||
} |