Symfony\Component\Console\Application::setName PHP Method

setName() public method

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

Usage Example

コード例 #1
0
ファイル: Samurai.php プロジェクト: raphhh/samurai
 /**
  * @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