PHP Classes

File: bin/console

Recommend this page to a friend!
  Classes of Manolo Salsas   PHP Find Text in Files   bin/console   Download  
File: bin/console
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Find Text in Files
Search text in files like the Linux command
Author: By
Last change:
Date: 2 years ago
Size: 492 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

use App\Kernel;
use
Symfony\Bundle\FrameworkBundle\Console\Application;

if (!
is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
    throw new
LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

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

return function (array
$context) {
   
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

    return new
Application($kernel);
};