Skip to content

Instantly share code, notes, and snippets.

View bartfeenstra's full-sized avatar
🚲
bumbling along...

Bart Feenstra bartfeenstra

🚲
bumbling along...
View GitHub Profile

In a built application, we want the application to check whether an arbitrary package has been built (composer install) into the code base.

We were originally thinking of storing a list of all installed packages (including their replace links) and that works for our test cases, but I can image it won't work for chained replacements, for instance: the requirements for package A are checked. A depends on D. The application already has B installed, which replaces C, which replaced D. As such, D is available within the system and A can be installed, but our code currently does not correctly output this, as it only stores B's replaced packages, which is C. It doesn't store C's replaced packages (D). We also need to perform this check programmatically, so there is no CLI environment. The reason we need this, is that the application allows extensions to be enabled runtime (so after the code base has been built), but it must make sure the code base has indeed been built correctly. Those extensions are also their

field.value.plugin:*":
label: Plugin collection field value
mapping:
plugin_id:
label: Plugin ID
type: string
plugin_configuration:
label: Plugin configuration
type: "[%parent.plugin_configuration_schema_id]"
plugin_configuration_schema_id:
protected function inspect($data, array $path = []) {
// Depth protection.
if (count($path) > 9) {
return;
}
// Make sure the data is either a scalar or an array.
if (is_object($data)) {
if (strpos(get_class($data), 'Connection') !== FALSE) {
var_dump(get_class($data));
diff --git a/includes/drush.inc b/includes/drush.inc
index b59d29c..e1244d6 100644
--- a/includes/drush.inc
+++ b/includes/drush.inc
@@ -836,12 +836,12 @@ function _drush_download_file($url, $destination, $overwrite = TRUE) {
}
$destination_tmp = drush_tempnam('download_file');
- if ($use_wget) {
+ if ($use_wget && FALSE) {
{
"require": {
"php": ">=5.3.0",
"behat/behat": "3.0.*",
"triquanta/libizi": "dev-master"
},
"config": {
"autoloader-suffix": "ComposerManager"
},
"minimum-stability": "dev"
vagrant@precise32:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapt-pkg4.12
The following packages will be upgraded:
apt-transport-https libapt-pkg4.12
2 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
Need to get 956 kB of archives.
$operations['update_status'] = array(
'title' => $this->t('Update status'),
'attributes' => array(
'class' => array('use-ajax'),
'data-accepts' => 'application/vnd.drupal-modal',
),
) + $entity->urlInfo('update-status-form')->toArray();
views.view.*:
display:
*:
display_options:
fields:
*:
currency_round:
label: Round amounts
type: bool
plugins:
- plugin_id: currency_fixed_rates
status: true
- plugin_id: currency_historical_rates
status: true