You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flight/Engine.php
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,8 @@ public function handleException(Throwable $e): void
267
267
/**
268
268
* Registers the container handler
269
269
*
270
-
* @param ContainerInterface|callable(class-string<T> $id, array<int|string, mixed> $params): ?T $containerHandler Callback function or PSR-11 Container object that sets the container and how it will inject classes
@@ -56,12 +67,30 @@ public function execute(): int
56
67
57
68
// Ask questions
58
69
$projectDesc = $io->prompt('Please describe what your project is for?');
59
-
$database = $io->prompt('What database are you planning on using? (e.g. MySQL, SQLite, PostgreSQL, none)', 'none');
60
-
$templating = $io->prompt('What HTML templating engine will you plan on using (if any)? (recommend latte)', 'latte');
70
+
71
+
$database = $io->prompt(
72
+
'What database are you planning on using? (e.g. MySQL, SQLite, PostgreSQL, none)',
73
+
'none'
74
+
);
75
+
76
+
$templating = $io->prompt(
77
+
'What HTML templating engine will you plan on using (if any)? (recommend latte)',
78
+
'latte'
79
+
);
80
+
61
81
$security = $io->confirm('Is security an important element of this project?', 'y');
62
82
$performance = $io->confirm('Is performance and speed an important part of this project?', 'y');
63
-
$composerLibs = $io->prompt('What major composer libraries will you be using if you know them right now?', 'none');
64
-
$envSetup = $io->prompt('How will you set up your development environment? (e.g. Docker, Vagrant, PHP dev server, other)', 'Docker');
83
+
84
+
$composerLibs = $io->prompt(
85
+
'What major composer libraries will you be using if you know them right now?',
86
+
'none'
87
+
);
88
+
89
+
$envSetup = $io->prompt(
90
+
'How will you set up your development environment? (e.g. Docker, Vagrant, PHP dev server, other)',
91
+
'Docker'
92
+
);
93
+
65
94
$teamSize = $io->prompt('How many developers will be working on this project?', '1');
66
95
$api = $io->confirm('Will this project expose an API?', 'n');
67
96
$other = $io->prompt('Any other important requirements or context? (optional)', 'no');
@@ -107,7 +136,13 @@ public function execute(): int
107
136
$data = [
108
137
'model' => $model,
109
138
'messages' => [
110
-
['role' => 'system', 'content' => 'You are a helpful AI coding assistant focused on the Flight Framework for PHP. You are up to date with all your knowledge from https://docs.flightphp.com. As an expert into the programming language PHP, you are top notch at architecting out proper instructions for FlightPHP projects.'],
139
+
[
140
+
'role' => 'system',
141
+
'content' => 'You are a helpful AI coding assistant focused on the Flight Framework for PHP. '
142
+
. 'You are up to date with all your knowledge from https://docs.flightphp.com. '
143
+
. 'As an expert into the programming language PHP, '
144
+
. 'you are top notch at architecting out proper instructions for FlightPHP projects.'
145
+
],
111
146
['role' => 'user', 'content' => $prompt],
112
147
],
113
148
'temperature' => 0.2,
@@ -129,7 +164,11 @@ public function execute(): int
129
164
}
130
165
131
166
// Write to files
132
-
$io->info('Updating .github/copilot-instructions.md, .cursor/rules/project-overview.mdc, .gemini/GEMINI.md and .windsurfrules...', true);
167
+
$io->info(
168
+
'Updating .github/copilot-instructions.md, .cursor/rules/project-overview.mdc, .gemini/GEMINI.md and .windsurfrules...',
Copy file name to clipboardExpand all lines: flight/commands/ControllerCommand.php
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,16 @@ public function execute(string $controller): void
31
31
$io = $this->app()->io();
32
32
33
33
if (empty($this->config['runway'])) {
34
-
$io->warn('Using a .runway-config.json file is deprecated. Move your config values to app/config/config.php with `php runway config:migrate`.', true); // @codeCoverageIgnore
@@ -478,7 +476,8 @@ public function negotiateContentType(array $supported): ?string
478
476
/**
479
477
* Retrieves the array of uploaded files.
480
478
*
481
-
* @return array<string, UploadedFile|array<int, UploadedFile>> Key is field name; value is either a single UploadedFile or an array of UploadedFile when multiple were uploaded.
0 commit comments