-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
// Let bootstrap create Dependency Injection container. | |
$container = require __DIR__ . '/app/bootstrap.php'; | |
// Run application. | |
$container->getService('application')->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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