Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add console runtime for Symfony Console and Laravel Artisan #122

Merged
merged 14 commits into from Dec 26, 2018

Conversation

mnapoli
Copy link
Member

@mnapoli mnapoli commented Dec 24, 2018

Closes #120

I implemented this as a thin layer that comes on top of the PHP runtime so that it's much easier to maintain and not coupled to a specific PHP version.

To use this: include the PHP runtime and add the "console" layer on top of it.

Usage example:

Resources:
     MyFunction:
         Type: AWS::Serverless::Function
         Properties:
             [...]
             Handler: bin/console
             Layers:
                 - '<PHP layer ARN here>'
                 - '<console layer ARN here>'

Then to execute a command:

vendor/bin/bref cli <function name> -- doctrine:migrate

capture d ecran 2018-12-26 a 12 37 28

TODO:

  • runtime
  • bref cli command
  • publish runtime

@mnapoli mnapoli added this to the 0.3 milestone Dec 24, 2018
demo/console.php Outdated Show resolved Hide resolved
runtime/command/README.md Outdated Show resolved Hide resolved
@mnapoli
Copy link
Member Author

mnapoli commented Dec 26, 2018

I created a follow up in #125 to simplify the use of the bref cli command.

@mnapoli mnapoli merged commit ebdf533 into 0.3 Dec 26, 2018
@mnapoli mnapoli deleted the 0.3-runtime-console branch December 26, 2018 11:58
@mnapoli mnapoli mentioned this pull request Dec 26, 2018
mnapoli added a commit that referenced this pull request Feb 14, 2023
Add console runtime for Symfony Console and Laravel Artisan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants