예제 #1
0
    /**
     * Set up options and arguments
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('server:run')->setDefinition(array(new InputOption('router', null, InputOption::VALUE_REQUIRED, 'The router script', realpath(__DIR__ . '/../../../resources/config/router.php')), new InputArgument('bind_address', InputArgument::OPTIONAL, 'The address:port your project will run', 'localhost:8080')))->setDescription('Runs the project')->setHelp(<<<EOF
    The <info>server:run</info> command runs the project using the PHP5.4+ builtin webserver

    <info>bin/console server:run</info>
EOF
);
    }
예제 #2
0
    /**
     * Set up options and arguments
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('fixtures:load')->setDescription('Runs the project')->setHelp(<<<EOF
    The <info>fixtures:load</info> insert fixtures data into your database

    <info>bin/console schema:create</info>
EOF
);
    }