Skip to content

Instantly share code, notes, and snippets.

@mishak87
Created January 7, 2014 21:36
Show Gist options
  • Save mishak87/8307342 to your computer and use it in GitHub Desktop.
Save mishak87/8307342 to your computer and use it in GitHub Desktop.
CLI launchers for Nette - Place in app root or change path in bin.
#!/usr/bin/env php
<?php
// Let bootstrap create Dependency Injection container.
$container = require __DIR__ . '/app/bootstrap.php';
// Run application.
$container->getService('application')->run();
@ECHO OFF
SET BIN_TARGET=%~dp0\bin
php "%BIN_TARGET%" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment