GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — VisualPHPUnit/src/Provider/ConfigServiceProvider.php at master · devcenter/VisualPHPUnit Expand file tree/ Copy pathConfigServiceProvider.phpMore file actions 65 lines (59 loc) · 1.35 KB / Copy pathConfigServiceProvider.phpFile metadata and controls65 lines (59 loc) · 1.35 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 <?php /** * VisualPHPUnit * * VisualPHPUnit is a visual front-end for PHPUnit. * * PHP Version 5.6< * * @author Johannes Skov Frandsen <[email protected]> * @copyright 2011-2016 VisualPHPUnit * @license http://opensource.org/licenses/BSD-3-Clause The BSD License * @link https://github.com/VisualPHPUnit/VisualPHPUnit VisualPHPUnit */ namespace Visualphpunit\Provider; use Pimple\Container; use Silex\Application; use Pimple\ServiceProviderInterface; use Silex\Api\BootableProviderInterface; /** * Visualphpunit Silex Config provider * * @author Johannes Skov Frandsen <[email protected]> */ class ConfigServiceProvider implements ServiceProviderInterface, BootableProviderInterface { /** * Path to config file * * @var string */ private $path; /** * Specify the path to the config file * * @param string $path */ public function __construct($path) { $this->path = $path; } /** * Register the provider * * @param Application $app * @return \Carpet\Provider\Jira */ public function register(Container $app) { $app["config"] = json_decode(file_get_contents($this->path), true)['config']; } /** * Boot the provider * * @param Application $app */ public function boot(Application $app) { } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |