Symfony\Component\Console\Application::setName PHP Метод

setName() публичный Метод

Sets the application name.
public setName ( string $name )
$name string The application name
    public function setName($name)
    {
        $this->name = $name;
    }

Usage Example

Пример #1
0
 /**
  * @param Application $application
  * @param Container $services
  */
 public function __construct(Application $application, Container $services = null)
 {
     $application->setName('Samurai console');
     $application->setVersion('0.0.0');
     $this->setApplication($application);
     $this->setServices($services ?: $this->buildServices());
     $this->initCommands();
 }
All Usage Examples Of Symfony\Component\Console\Application::setName