Searched refs:container (Results 1 – 25 of 25) sorted by relevance
/web-bugs/tests/Unit/Container/ |
H A D | ContainerTest.php | 15 $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 D | container.php | 12 $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 D | index.php | 26 '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 D | prepend.php | 67 $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 D | query.php | 25 $packageRepository = $container->get(PackageRepository::class);
|
/web-bugs/docs/ |
H A D | container.md | 1 # 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 D | README.md | 4 * [Dependency injection container](/docs/container.md)
|
/web-bugs/www/ |
H A D | gh-pull-add.php | 30 $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 D | quick-fix-desc.php | 15 $reasonRepository = $container->get(ReasonRepository::class);
|
H A D | patch-display.php | 14 $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 D | patch-add.php | 11 $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 D | api.php | 18 $commentRepository = $container->get(CommentRepository::class);
|
H A D | index.php | 22 $id = $container->get(BugRepository::class)->findRandom();
|
H A D | vote.php | 28 if (!$container->get(BugRepository::class)->exists($id)) { 69 if (empty($container->get(VoteRepository::class)->findOneByIdAndIp($id, $ip))) {
|
H A D | fix.php | 23 $bugRepository = $container->get(BugRepository::class); 42 $reasonRepository = $container->get(ReasonRepository::class);
|
H A D | bug-pwd-finder.php | 13 $captcha = $container->get(Captcha::class);
|
H A D | rpc.php | 33 $bugRepository = $container->get(BugRepository::class);
|
H A D | lstats.php | 49 $packageRepository = $container->get(PackageRepository::class);
|
H A D | bug.php | 19 $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 D | stats.php | 46 $bugRepository = $container->get(BugRepository::class);
|
/web-bugs/www/rss/ |
H A D | bug.php | 19 $bugRepository = $container->get(BugRepository::class); 32 $commentRepository = $container->get(CommentRepository::class);
|
/web-bugs/scripts/cron/ |
H A D | no-feedback | 15 $reasonRepository = $container->get(ReasonRepository::class); 19 foreach ($container->get(BugRepository::class)->findAllWithoutFeedback() as $bug)
|
H A D | email-assigned | 13 foreach ($container->get(BugRepository::class)->findAllAssigned() as $assigned => $binfos) {
|
/web-bugs/www/js/ |
H A D | jquery.autocomplete-min.js | 10 …container=$("#"+autocompleteElId);this.fixPosition();if(window.opera){this.el.keypress(function(e)…
|
/web-bugs/ |
H A D | README.md | 42 ├─ prepend.php # Autoloader, DB connection, container, app initialization
|
Completed in 37 milliseconds