GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — VisualPHPUnit/src/Provider/ConfigServiceProvider.php at master · devcenter/VisualPHPUnit

Expand file tree

/

ConfigServiceProvider.php

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (59 loc) · 1.35 KB
/

ConfigServiceProvider.php

Copy path

File metadata and controls

65 lines (59 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.