@lando/symfony 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1955,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1709611417411,"ppid":1944,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/61859fb3-ac68-45b8-b65b-22bcf941c388.json","externalId":"","uuid":"61859fb3-ac68-45b8-b65b-22bcf941c388","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1944,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1709611417254,"ppid":1943,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/a404ca81-f26d-4a98-b687-edb7c07118ad.json","externalId":"","uuid":"a404ca81-f26d-4a98-b687-edb7c07118ad","files":[]}
@@ -1 +1 @@
1
- {"processes":{"32ccf25d-b710-4efa-821a-5693e4df67d3":{"parent":null,"children":[]},"7032bc41-5dac-4d49-b79c-680a53cb1063":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"61859fb3-ac68-45b8-b65b-22bcf941c388":{"parent":null,"children":[]},"a404ca81-f26d-4a98-b687-edb7c07118ad":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.4.1 - [March 4, 2024](https://github.com/lando/symfony/releases/tag/v1.4.1)
2
+
3
+ ### Fixes
4
+
5
+ * Improved `database` selection for purposes of `config` loading, fixes some `database` bootup issues when the `database` type is overriden downstream
6
+
1
7
  ## v1.4.0 - [February 22, 2024](https://github.com/lando/symfony/releases/tag/v1.4.0)
2
8
 
3
9
  ### Fixes
@@ -74,7 +74,16 @@ const getServiceConfig = (options, types = ['php', 'server', 'vhosts']) => {
74
74
  return config;
75
75
  };
76
76
 
77
- // Tooling defaults
77
+ /*
78
+ * Helper to get database type
79
+ */
80
+ const getDatabaseType = options => {
81
+ return _.get(options, '_app.config.services.database.type', options.database) ?? 'mysql';
82
+ };
83
+
84
+ /*
85
+ * Tooling defaults
86
+ */
78
87
  const toolingDefaults = {
79
88
  'composer': {
80
89
  service: 'appserver',
@@ -172,11 +181,12 @@ const getConfigDefaults = options => {
172
181
  // Get the viaconf
173
182
  if (_.startsWith(options.via, 'nginx')) options.defaultFiles.vhosts = 'default.conf.tpl';
174
183
 
175
- // Get the default db conf
176
- const dbConfig = _.get(options, 'database', 'mysql');
184
+ // attempt to discover the database that is actually being used
185
+ // @NOTE: this will look to see if database is overridden
186
+ const dbConfig = getDatabaseType(options);
177
187
  const database = _.first(dbConfig.split(':'));
178
188
  const version = _.last(dbConfig.split(':')).substring(0, 2);
179
- if (database === 'mysql' || database === 'mariadb') {
189
+ if (database === 'symfony-mysql' || database === 'mysql' || database === 'mariadb') {
180
190
  if (version === '8.') {
181
191
  options.defaultFiles.database = 'mysql8.cnf';
182
192
  } else {
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2024-02-23T00:41:51.819Z
89
+ at 2024-03-05T04:03:37.605Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/symfony",
3
3
  "description": "A Lando plugin that provides a tight integration with Symfony.",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/symfony",
@@ -79,9 +79,9 @@
79
79
  "lodash"
80
80
  ],
81
81
  "dist": {
82
- "integrity": "sha512-ARGTzdsTD3m5Vdy0zjCvZpcHAY3lTQb98VVX+jfmssaZIwwwKIEP5rLLj2El7W7+XVhLy0w+TvQmfxS1ec8RyQ==",
83
- "shasum": "224067ef35e184ae490db1ba91be7a7a18f9b024",
84
- "filename": "lando-symfony-1.4.0.tgz",
85
- "unpackedSize": 16649174
82
+ "integrity": "sha512-Wc0sW0+RQdHjOdiOsi7qHVzNjL6TGlYDMcOaITuwHTg+dljPXKD1opSxq/Mgj7EH4nFNo+30s3NbsizFJToICA==",
83
+ "shasum": "512c730edf345aa78a66f0efee9eca2a6e44627f",
84
+ "filename": "lando-symfony-1.4.1.tgz",
85
+ "unpackedSize": 16649716
86
86
  }
87
87
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1870,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1708648911623,"ppid":1859,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/32ccf25d-b710-4efa-821a-5693e4df67d3.json","externalId":"","uuid":"32ccf25d-b710-4efa-821a-5693e4df67d3","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1859,"argv":["/opt/hostedtoolcache/node/18.19.1/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1708648911471,"ppid":1858,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/7032bc41-5dac-4d49-b79c-680a53cb1063.json","externalId":"","uuid":"7032bc41-5dac-4d49-b79c-680a53cb1063","files":[]}