@@ -188,18 +188,13 @@ private function displayComponentDetails(SymfonyStyle $io, string $name): void
188
188
}
189
189
190
190
$ table ->addRows ([
191
- ['Type ' , ' <info>Live</info> ' ],
191
+ ['Type ' , $ metadata -> get ( ' live ' ) ? ' <info>Live</info> ' : ' ' ],
192
192
new TableSeparator (),
193
193
// ['Attributes Var', $metadata->get('attributes_var')],
194
194
['Public Props ' , $ metadata ->get ('expose_public_props ' ) ? 'Yes ' : 'No ' ],
195
195
['Properties ' , implode ("\n" , $ this ->getComponentProperties ($ metadata ))],
196
196
]);
197
197
198
- // $properties = $this->getComponentProperties($metadata);
199
- // if (\count($properties)) {
200
- // $table->addRow(['Propertires', implode("\n", $properties)]);
201
- // }
202
-
203
198
$ logMethod = function (\ReflectionMethod $ m ) {
204
199
$ params = array_map (
205
200
fn (\ReflectionParameter $ p ) => '$ ' .$ p ->getName (),
@@ -208,7 +203,6 @@ private function displayComponentDetails(SymfonyStyle $io, string $name): void
208
203
209
204
return sprintf ('%s(%s) ' , $ m ->getName (), implode (', ' , $ params ));
210
205
};
211
-
212
206
$ hooks = [];
213
207
if ($ method = AsTwigComponent::mountMethod ($ metadata ->getClass ())) {
214
208
$ hooks [] = ['Mount ' , $ logMethod ($ method )];
0 commit comments