Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 25) sorted by relevance

/web-bugs/tests/Unit/Container/
H A DContainerTest.php15 $container = new Container();
18 $container->set(MockService::class, function (Container $container) {
25 $container->set(MockDependency::class, function (Container $container) {
46 $container = new Container();
50 $container->set(MockDependency::class, function (Container $container) {
60 $container = new Container();
64 $container->get('foo');
69 $container = new Container();
82 $container->set(MockService::class, function (Container $container) {
86 $container->set(MockService::class, function (Container $container) {
[all …]
/web-bugs/config/
H A Dcontainer.php12 $container = new Container(include __DIR__.'/parameters.php'); variable
14 $container->set(\PDO::class, function ($c) {
28 $container->set(App\Repository\BugRepository::class, function ($c) {
48 $container->set(App\Repository\PatchRepository::class, function ($c) {
64 $container->set(App\Repository\VoteRepository::class, function ($c) {
68 $container->set(App\Template\Engine::class, function ($c) {
72 $container->set(App\Utils\Captcha::class, function ($c) {
76 $container->set(App\Utils\GitHub::class, function ($c) {
80 $container->set(App\Utils\PatchTracker::class, function ($c) {
88 $container->set(App\Utils\Uploader::class, function ($c) {
[all …]
/web-bugs/www/admin/
H A Dindex.php26 'info' => $container->get(PhpInfoRepository::class)->getInfo(),
33 'responses' => $container->get(ReasonRepository::class)->findAll(),
40 … 'mysqlVersion' => $container->get(DatabaseStatusRepository::class)->getMysqlVersion(),
41 …'numberOfRowsPerTable' => $container->get(DatabaseStatusRepository::class)->getNumberOfRowsInTable…
42 … 'statusPerTable' => $container->get(DatabaseStatusRepository::class)->getStatusOfTables(),
50 'lists' => $container->get(PackageRepository::class)->findLists(),
/web-bugs/include/
H A Dprepend.php67 $container = require_once __DIR__.'/../config/container.php'; variable
70 if ('dev' === $container->get('env')) {
80 $dbh = $container->get(\PDO::class);
87 $template = $container->get(Engine::class);
90 'siteScheme' => $container->get('site_scheme'),
91 'siteUrl' => $container->get('site_url'),
H A Dquery.php25 $packageRepository = $container->get(PackageRepository::class);
/web-bugs/docs/
H A Dcontainer.md1 # Dependency injection container
51 $container = require_once __DIR__.'/../config/container.php';
53 $data = $container->get(Repository::class)->getData();
71 Which can be retrieved by the container:
74 $value = $container->get('parameter_key');
82 // config/container.php
90 $container->set(App\Foo::class, function ($c) {
95 $container->set(App\Foo\Bar::class, function ($c) {
103 $container->set(App\Foo\Bar::class, function ($c) {
114 $container->set(App\Dependency::class, function ($c) {
[all …]
H A DREADME.md4 * [Dependency injection container](/docs/container.md)
/web-bugs/www/
H A Dgh-pull-add.php30 $bugRepository = $container->get(BugRepository::class);
43 $captcha = $container->get(Captcha::class);
55 $pullinfo = $container->get(GitHub::class);
56 $pullRequestRepository = $container->get(PullRequestRepository::class);
107 if ('dev' === $container->get('env')) {
H A Dquick-fix-desc.php15 $reasonRepository = $container->get(ReasonRepository::class);
H A Dpatch-display.php14 $obsoletePatchRepository = $container->get(ObsoletePatchRepository::class);
15 $patchRepository = $container->get(PatchRepository::class);
16 $patchTracker = $container->get(PatchTracker::class);
41 $bugRepository = $container->get(BugRepository::class);
H A Dpatch-add.php11 $patchTracker = $container->get(PatchTracker::class);
12 $patchRepository = $container->get(PatchRepository::class);
41 $bugRepository = $container->get(BugRepository::class);
54 $captcha = $container->get(Captcha::class);
H A Dapi.php18 $commentRepository = $container->get(CommentRepository::class);
H A Dindex.php22 $id = $container->get(BugRepository::class)->findRandom();
H A Dvote.php28 if (!$container->get(BugRepository::class)->exists($id)) {
69 if (empty($container->get(VoteRepository::class)->findOneByIdAndIp($id, $ip))) {
H A Dfix.php23 $bugRepository = $container->get(BugRepository::class);
42 $reasonRepository = $container->get(ReasonRepository::class);
H A Dbug-pwd-finder.php13 $captcha = $container->get(Captcha::class);
H A Drpc.php33 $bugRepository = $container->get(BugRepository::class);
H A Dlstats.php49 $packageRepository = $container->get(PackageRepository::class);
H A Dbug.php19 $obsoletePatchRepository = $container->get(ObsoletePatchRepository::class);
20 $patchRepository = $container->get(PatchRepository::class);
127 $captcha = $container->get(Captcha::class);
134 $bugRepository = $container->get(BugRepository::class);
189 $packageRepository = $container->get(PackageRepository::class);
195 $reasonRepository = $container->get(ReasonRepository::class);
1111 $pullRequestRepository = $container->get(PullRequestRepository::class);
1122 $commentRepository = $container->get(CommentRepository::class);
H A Dstats.php46 $bugRepository = $container->get(BugRepository::class);
/web-bugs/www/rss/
H A Dbug.php19 $bugRepository = $container->get(BugRepository::class);
32 $commentRepository = $container->get(CommentRepository::class);
/web-bugs/scripts/cron/
H A Dno-feedback15 $reasonRepository = $container->get(ReasonRepository::class);
19 foreach ($container->get(BugRepository::class)->findAllWithoutFeedback() as $bug)
H A Demail-assigned13 foreach ($container->get(BugRepository::class)->findAllAssigned() as $assigned => $binfos) {
/web-bugs/www/js/
H A Djquery.autocomplete-min.js10container=$("#"+autocompleteElId);this.fixPosition();if(window.opera){this.el.keypress(function(e)…
/web-bugs/
H A DREADME.md42 ├─ prepend.php # Autoloader, DB connection, container, app initialization

Completed in 39 milliseconds