-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the whole application kernel
- Loading branch information
Showing
25 changed files
with
425 additions
and
290 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
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
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,23 @@ | ||
<?php | ||
|
||
namespace Castor\Descriptor; | ||
|
||
/** @internal */ | ||
final class DescriptorsCollection | ||
{ | ||
/** | ||
* @param list<TaskDescriptor> $taskDescriptors | ||
* @param list<ContextDescriptor> $contextDescriptors | ||
* @param list<ContextGeneratorDescriptor> $contextGeneratorDescriptors | ||
* @param list<ListenerDescriptor> $listenerDescriptors | ||
* @param list<SymfonyTaskDescriptor> $symfonyTaskDescriptors | ||
*/ | ||
public function __construct( | ||
public readonly array $taskDescriptors, | ||
public readonly array $contextDescriptors, | ||
public readonly array $contextGeneratorDescriptors, | ||
public readonly array $listenerDescriptors, | ||
public readonly array $symfonyTaskDescriptors, | ||
) { | ||
} | ||
} |
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,7 @@ | ||
<?php | ||
|
||
namespace Castor\Event; | ||
|
||
class EntryPointLoadedEvent | ||
{ | ||
} |
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,13 @@ | ||
<?php | ||
|
||
namespace Castor\Event; | ||
|
||
use Castor\Descriptor\DescriptorsCollection; | ||
|
||
class FunctionsResolvedEvent | ||
{ | ||
public function __construct( | ||
public DescriptorsCollection $descriptorsCollection, | ||
) { | ||
} | ||
} |
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,13 @@ | ||
<?php | ||
|
||
namespace Castor\Exception; | ||
|
||
class CouldNotFindEntrypointException extends \RuntimeException | ||
{ | ||
public function __construct( | ||
string $message = 'Could not find root "castor.php" or ".castor/castor.php" file.', | ||
?\Throwable $previous = null, | ||
) { | ||
parent::__construct($message, 0, $previous); | ||
} | ||
} |
Oops, something went wrong.