use Symfony\Component\Console\Application; $application = new Application(); $application->setName('My Console App');In this example, the `setName` method is used to set the name of the console application to `My Console App`. This method belongs to the `Symfony\Component\Console` package, which is a part of the Symfony PHP framework.