PHP Classes

File: bin/toy

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Dinobot on Tabletop Game   bin/toy   Download  
File: bin/toy
Role: Example script
Content type: text/plain
Description: Example script
Class: Dinobot on Tabletop Game
Play the Dinobot game on the terminal console
Author: By
Last change:
Date: 18 days ago
Size: 366 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php declare(strict_types=1);

@
set_time_limit(0);
@
ini_set('memory_limit', '528M');

require_once
dirname(__DIR__) . '/vendor/autoload.php';

use
App\Command\ToyCommand;
use
Symfony\Component\Console\Application;

$app = new Application();

$toy = new ToyCommand();
$app->add($toy);
$app->setDefaultCommand($toy->getName(), true);

$app->run();