Lines Matching refs:App

10 use App\Container\Container;
23 \PDO::ATTR_STATEMENT_CLASS => [App\Database\Statement::class],
28 $container->set(App\Repository\BugRepository::class, function ($c) {
29 return new App\Repository\BugRepository($c->get(\PDO::class));
32 $container->set(App\Repository\CommentRepository::class, function ($c) {
33 return new App\Repository\CommentRepository($c->get(\PDO::class));
36 $container->set(App\Repository\DatabaseStatusRepository::class, function ($c) {
37 return new App\Repository\DatabaseStatusRepository($c->get(\PDO::class));
40 $container->set(App\Repository\ObsoletePatchRepository::class, function ($c) {
41 return new App\Repository\ObsoletePatchRepository($c->get(\PDO::class));
44 $container->set(App\Repository\PackageRepository::class, function ($c) {
45 return new App\Repository\PackageRepository($c->get(\PDO::class));
48 $container->set(App\Repository\PatchRepository::class, function ($c) {
49 return new App\Repository\PatchRepository($c->get(\PDO::class), $c->get('uploads_dir'));
52 $container->set(App\Repository\PhpInfoRepository::class, function ($c) {
53 return new App\Repository\PhpInfoRepository();
56 $container->set(App\Repository\PullRequestRepository::class, function ($c) {
57 return new App\Repository\PullRequestRepository($c->get(\PDO::class));
60 $container->set(App\Repository\ReasonRepository::class, function ($c) {
61 return new App\Repository\ReasonRepository($c->get(\PDO::class));
64 $container->set(App\Repository\VoteRepository::class, function ($c) {
65 return new App\Repository\VoteRepository($c->get(\PDO::class));
68 $container->set(App\Template\Engine::class, function ($c) {
69 return new App\Template\Engine($c->get('templates_dir'));
72 $container->set(App\Utils\Captcha::class, function ($c) {
73 return new App\Utils\Captcha();
76 $container->set(App\Utils\GitHub::class, function ($c) {
77 return new App\Utils\GitHub($c->get(\PDO::class));
80 $container->set(App\Utils\PatchTracker::class, function ($c) {
81 return new App\Utils\PatchTracker(
83 $c->get(App\Utils\Uploader::class),
88 $container->set(App\Utils\Uploader::class, function ($c) {
89 return new App\Utils\Uploader();