-
Notifications
You must be signed in to change notification settings - Fork 386
Convert from Laminas\Db to Doctrine #2233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 34 commits
2ab0644
5234e6c
da00f37
c1ca391
70ac464
babb53f
19be38f
3c5d0cf
eade5c4
861290e
4043c57
2d2ca1a
44042cf
14e57fa
5cbe584
453a289
0ff0d0a
be1b9ce
2ce9f85
98ceede
a1a9848
1261085
7274bf2
691838e
e0f9837
f3e14e3
0823739
c9b3594
39592d7
25379a8
5c989be
d04d2e8
dde6b4e
72646d5
f922264
ee4bd71
3e2a614
7a18a96
0259d61
de69786
61e37dc
5f068d9
931156d
bfd275c
15aa44e
03bf4b9
e1c1c49
56c60df
a5c6571
44c7f60
83ad677
b9115c2
37ffd6f
129214a
9be382c
30ae6d0
4654027
2749e06
de77327
372b954
e4c8704
f7601cc
31f40ae
1828a00
31db1e1
ac1d867
9ac7c41
6a5c793
5496dc7
acbeed1
c6e2ad9
165dd62
3e0a4bf
e409022
8006615
48bac86
2c163d2
b5038b4
b560761
c54034d
1d5c483
3a2ee02
c2206cc
4fac62d
3ccfa60
17f453d
d0dec6a
99b25f8
c9e0592
761c935
4fdeff3
6dabb82
a892f12
68289c8
7a1012a
94e6c27
3ca1f52
f0f0087
ed30fe4
0be4ee9
e370658
5f22be8
62d0024
da3f5fb
59d2afa
15ea6e1
e4d23b7
29a65c8
74c1aaa
eb53990
9d384c4
5bb8928
a8af487
e2dd538
330d8b0
e9cd529
a710e35
3026b96
09a423d
0a36939
598d46d
52d419e
b2406c4
eeffc8b
b61ce9b
5eb2d60
4d64f77
16c7476
3a6f234
f14fe41
a16a9dc
e7dce70
d6cc727
80c36dc
02e7666
2ed20f0
ba5fe82
f4d4f23
3ded82b
ea58ce1
9fb5494
ae159c1
17bae4d
147a6cd
19ece32
a6796f3
99df79f
845df3d
8916731
4951130
9e0c5c2
60966f8
26e19e6
3ef5c51
c21d9a6
0b04e24
761a5f5
6fb9c88
8ad9a03
e66a394
5bc9ede
40c8613
9b86ddc
8c0cb05
9f6bdc5
fe77e78
f0f0d35
d14f02e
ba31619
095200c
c805944
83b23d1
d45aa32
1b5933a
f6528ea
2ec281e
f8c65a5
da382d5
41983be
c673eee
61e5a07
6720dd7
62b0c8a
371aebe
f328163
2ddfb0c
6d9adc9
19f4652
1819224
b3ebf67
6a9a5f2
458c2c6
449e411
a9ed082
af8878b
006db64
d381fde
2e557b1
cf77894
c77bfa5
bf59266
989137c
6d882fb
c81cc75
09d0041
1867b98
d6bda84
574ae19
2bd7d66
0d00784
f40ee11
ec16e7c
684049e
d98a0d4
1b5cb5d
5a36708
9f5a790
a88798f
6523961
cc11603
2658cf9
670737c
46028b1
2e415df
4485630
27fe040
d144552
cfd96b3
4ef6fbf
62b4b83
ae329ea
e01c560
862aca6
a53c3bd
b09baac
73706e8
85b87b2
09a914d
2e3d561
53b1449
9e9aba1
fa5b0c2
ae0249f
b967e7e
8f3187a
ab5362d
f8526d2
9047259
a84629b
d97ad75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| $app = include __DIR__ . '/application.php'; | ||
| return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet( | ||
| $app->getServiceManager()->get('doctrine.entity_manager.orm_default') | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -338,6 +338,7 @@ | |
| 'service_manager' => [ | ||
| 'allow_override' => true, | ||
| 'factories' => [ | ||
| 'Doctrine\ORM\Mapping\Driver\AnnotationDriver' => 'VuFind\Db\AnnotationDriverFactory', | ||
|
||
| 'League\CommonMark\ConverterInterface' => 'VuFind\Service\MarkdownFactory', | ||
| 'ProxyManager\Configuration' => 'VuFind\Service\ProxyConfigFactory', | ||
| 'VuFind\AjaxHandler\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
|
|
@@ -378,7 +379,10 @@ | |
| 'VuFind\Crypt\HMAC' => 'VuFind\Crypt\HMACFactory', | ||
| 'VuFind\Date\Converter' => 'VuFind\Service\DateConverterFactory', | ||
| 'VuFind\Db\AdapterFactory' => 'VuFind\Service\ServiceWithConfigIniFactory', | ||
| 'VuFind\Db\Connection' => 'VuFind\Db\ConnectionFactory', | ||
demiankatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'VuFind\Db\Entity\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
| 'VuFind\Db\Row\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
| 'VuFind\Db\Service\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
| 'VuFind\Db\Table\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
| 'VuFind\DigitalContent\OverdriveConnector' => 'VuFind\DigitalContent\OverdriveConnectorFactory', | ||
| 'VuFind\DoiLinker\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory', | ||
|
|
@@ -464,6 +468,7 @@ | |
| 'VuFind\ServiceManager\ServiceInitializer', | ||
| ], | ||
| 'aliases' => [ | ||
| 'doctrine.connection.orm_vufind' => 'VuFind\Db\Connection', | ||
| 'League\CommonMark\MarkdownConverterInterface' => 'League\CommonMark\ConverterInterface', | ||
| 'Request' => 'VuFind\Http\PhpEnvironment\Request', | ||
| 'VuFind\AccountCapabilities' => 'VuFind\Config\AccountCapabilities', | ||
|
|
@@ -533,6 +538,41 @@ | |
| 'VuFind\Form\Form' => false, | ||
| ], | ||
| ], | ||
| 'doctrine' => [ | ||
| 'cache' => [ | ||
| 'filesystem' => [ | ||
| 'directory' => LOCAL_CACHE_DIR . '/doctrine', | ||
| ], | ||
| ], | ||
| 'configuration' => [ | ||
| 'orm_default' => [ | ||
| 'query_cache' => 'filesystem', | ||
| 'result_cache' => 'filesystem', | ||
| 'metadata_cache' => 'filesystem', | ||
| 'hydration_cache' => 'filesystem', | ||
| ], | ||
| ], | ||
| 'driver' => [ | ||
| 'vufind_annotation_driver' => [ | ||
| 'class' => \Doctrine\ORM\Mapping\Driver\AnnotationDriver::class, | ||
| 'cache' => 'filesystem', | ||
| 'paths' => [ | ||
| 'module/VuFind/src/VuFind/Db/Entity', | ||
| ], | ||
| ], | ||
| 'orm_default' => [ | ||
| 'drivers' => [ | ||
| 'VuFind\Db\Entity' => 'vufind_annotation_driver', | ||
| ], | ||
| ], | ||
| ], | ||
| 'entitymanager' => [ | ||
| 'orm_vufind' => [ | ||
| 'connection' => 'orm_vufind', | ||
| 'configuration' => 'orm_vufind', | ||
| ], | ||
| ], | ||
| ], | ||
| 'translator' => [], | ||
| 'translator_plugins' => [ | ||
| 'factories' => [ | ||
|
|
@@ -595,7 +635,9 @@ | |
| 'content_toc' => [ /* see VuFind\Content\TOC\PluginManager for defaults */ ], | ||
| 'contentblock' => [ /* see VuFind\ContentBlock\PluginManager for defaults */ ], | ||
| 'cover_layer' => [ /* see VuFind\Cover\Layer\PluginManager for defaults */ ], | ||
| 'db_entity' => [ /* see VuFind\Db\Entity\PluginManager for defaults */ ], | ||
| 'db_row' => [ /* see VuFind\Db\Row\PluginManager for defaults */ ], | ||
| 'db_service' => [ /* see VuFind\Db\Service\PluginManager for defaults */ ], | ||
| 'db_table' => [ /* see VuFind\Db\Table\PluginManager for defaults */ ], | ||
| 'doilinker' => [ /* see VuFind\DoiLinker\PluginManager for defaults */ ], | ||
| 'form_handler' => [ /* see VuFind\Form\Handler\PluginManager for defaults */], | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.