File tree 8 files changed +34
-31
lines changed
8 files changed +34
-31
lines changed Original file line number Diff line number Diff line change 88
88
'import_functions ' => true ,
89
89
]);
90
90
91
- $ config ->skip ([
92
- PhpUnitTestClassRequiresCoversFixer::class
93
- ]);
91
+ $ config ->skip ([PhpUnitTestClassRequiresCoversFixer::class]);
94
92
95
93
$ config ->parallel ();
96
- $ config ->paths ([
97
- __DIR__ .'/src ' ,
98
- __DIR__ .'/tests ' ,
94
+ $ config ->paths ([__DIR__ . '/ ' ]);
95
+ $ config ->skip ([
96
+ __DIR__ . '/.github ' ,
97
+ __DIR__ . '/.phpunit.result.cache ' ,
98
+ __DIR__ . '/config ' ,
99
+ __DIR__ . '/var ' ,
100
+ __DIR__ . '/vendor ' ,
99
101
]);
100
102
};
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- /**
4
- * Returns the import map for this application.
5
- *
6
- * - "path" is a path inside the asset mapper system. Use the
7
- * "debug:asset-map" command to see the full list of paths.
8
- *
9
- * - "preload" set to true for any modules that are loaded on the initial
10
- * page load to help the browser download them earlier.
11
- *
12
- * The "importmap:require" command can be used to add new entries to this file.
13
- *
14
- * This file has been auto-generated by the importmap commands.
15
- */
3
+ declare (strict_types=1 );
4
+
16
5
return [
17
6
'app ' => [
18
7
'path ' => 'app.js ' ,
Original file line number Diff line number Diff line change 6
6
7
7
use Doctrine \DBAL \Schema \Schema ;
8
8
use Doctrine \Migrations \AbstractMigration ;
9
+ use LogicException ;
9
10
10
11
final class Version20220403120305 extends AbstractMigration
11
12
{
@@ -34,6 +35,6 @@ public function up(Schema $schema): void
34
35
35
36
public function down (Schema $ schema ): void
36
37
{
37
- throw new \ LogicException ('Wild cats never go back! ' );
38
+ throw new LogicException ('Wild cats never go back! ' );
38
39
}
39
40
}
Original file line number Diff line number Diff line change 6
6
7
7
use Doctrine \DBAL \Schema \Schema ;
8
8
use Doctrine \Migrations \AbstractMigration ;
9
+ use LogicException ;
9
10
10
11
final class Version20230619191051 extends AbstractMigration
11
12
{
@@ -23,6 +24,6 @@ public function up(Schema $schema): void
23
24
24
25
public function down (Schema $ schema ): void
25
26
{
26
- throw new \ LogicException ('Wild cats never go back! ' );
27
+ throw new LogicException ('Wild cats never go back! ' );
27
28
}
28
29
}
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
use App \Kernel ;
4
6
5
- require_once dirname (__DIR__ ). '/vendor/autoload_runtime.php ' ;
7
+ require_once dirname (__DIR__ ) . '/vendor/autoload_runtime.php ' ;
6
8
7
- return static function (array $ context ) {
8
- return new Kernel ($ context ['APP_ENV ' ], (bool ) $ context ['APP_DEBUG ' ]);
9
- };
9
+ return static fn (array $ context ) => new Kernel ($ context ['APP_ENV ' ], (bool ) $ context ['APP_DEBUG ' ]);
Original file line number Diff line number Diff line change 27
27
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES ,
28
28
]);
29
29
$ config ->phpVersion (PhpVersion::PHP_82 );
30
- $ config ->paths ([__DIR__ . '/src ' , __DIR__ . '/tests ' ]);
30
+ $ config ->paths ([__DIR__ . '/ ' ]);
31
+ $ config ->skip ([
32
+ __DIR__ . '/.github ' ,
33
+ __DIR__ . '/.phpunit.result.cache ' ,
34
+ __DIR__ . '/config ' ,
35
+ __DIR__ . '/var ' ,
36
+ __DIR__ . '/vendor ' ,
37
+ ]);
31
38
$ config ->parallel ();
32
39
$ config ->importNames ();
33
40
$ config ->importShortClasses ();
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public function setUsername(string $username): void
58
58
59
59
public function eraseCredentials (): void
60
60
{
61
+ //Not needed in this case because we don't store plain-text passwords
61
62
}
62
63
63
64
public function getDisplayName (): string
Original file line number Diff line number Diff line change 10
10
require_once __DIR__ . '/vendor/autoload_runtime.php ' ;
11
11
12
12
use App \Kernel ;
13
+ use App \Repository \PublicKeyCredentialSourceRepository ;
13
14
use Symfony \Bundle \FrameworkBundle \Kernel \MicroKernelTrait ;
14
15
use Symfony \Component \Console \Output \StreamOutput ;
15
16
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
19
20
$ k = new class ('dev ' , true ) extends Kernel implements CompilerPassInterface {
20
21
use MicroKernelTrait;
21
22
22
- public function process (ContainerBuilder $ container )
23
+ public function process (ContainerBuilder $ container ): void
23
24
{
24
- $ container ->getAlias ( ' logger ' )
25
+ $ container ->getDefinition (PublicKeyCredentialSourceRepository::class )
25
26
->setPublic (true );
26
27
$ container ->getDefinition ('monolog.handler.console ' )
27
28
->setPublic (true );
@@ -33,8 +34,9 @@ public function process(ContainerBuilder $container)
33
34
$ c ->get ('monolog.handler.console ' )
34
35
->setOutput (new StreamOutput (fopen ('php://stdout ' , 'w ' ), StreamOutput::VERBOSITY_VERY_VERBOSE ));
35
36
36
- $ logger = $ c ->get ('logger ' );
37
- $ em = $ c ->get ('doctrine.orm.entity_manager ' );
38
-
39
37
// Start of playground
38
+ $ pksRepository = $ c ->get (PublicKeyCredentialSourceRepository::class);
39
+ $ pks = $ pksRepository ->findAll ();
40
+
41
+ dump ($ pks );
40
42
};
You can’t perform that action at this time.
0 commit comments