codesamplex

Beispiel

Declare Symfony Console commands using the AsCommand attribute rather than the removed static defaultName property

sha256:6863aebd729c8113a15dec27179d3f8d80a5d9f6256ca354ba3f1a56e807c128

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
Declare Symfony Console commands using the AsCommand attribute rather than the removed static defaultName property HOW
Pakete
symfony/console 7.2.1
Umgebung
php
Erstellt
2026-08-16T14:01:15Z

Häufige Annahme

Declaring a protected static $defaultName property on a Command subclass sets the command name and description and allows registering it with Application::add().

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege