Permalink
Browse files

Updated dependencies and deployed missing commerce_license via composer

  • Loading branch information...
lpalgarvio committed Nov 25, 2017
1 parent 2d911d5 commit faa128b11b85055c2407318a0a329387384371c5
Showing with 5,398 additions and 194 deletions.
  1. +16 −16 composer.lock
  2. +22 −18 docroot/modules/contrib/address/README.md
  3. +3 −3 docroot/modules/contrib/address/address.info.yml
  4. +12 −26 docroot/modules/contrib/address/src/Plugin/migrate/cckfield/AddressField.php
  5. +50 −0 docroot/modules/contrib/address/src/Plugin/migrate/field/AddressField.php
  6. +3 −3 docroot/modules/contrib/address/tests/modules/address_test/address_test.info.yml
  7. +52 −0 docroot/modules/contrib/address/tests/src/Kernel/Plugin/migrate/field/AddressFieldTest.php
  8. +23 −0 docroot/modules/contrib/commerce_license/README.txt
  9. +39 −0 docroot/modules/contrib/commerce_license/commerce_license.api.php
  10. +16 −0 docroot/modules/contrib/commerce_license/commerce_license.info.yml
  11. +5 −0 docroot/modules/contrib/commerce_license/commerce_license.links.action.yml
  12. +5 −0 docroot/modules/contrib/commerce_license/commerce_license.links.menu.yml
  13. +5 −0 docroot/modules/contrib/commerce_license/commerce_license.links.task.yml
  14. +277 −0 docroot/modules/contrib/commerce_license/commerce_license.module
  15. +30 −0 docroot/modules/contrib/commerce_license/commerce_license.page.inc
  16. +4 −0 docroot/modules/contrib/commerce_license/commerce_license.permissions.yml
  17. +5 −0 docroot/modules/contrib/commerce_license/commerce_license.plugin_type.yml
  18. +7 −0 docroot/modules/contrib/commerce_license/commerce_license.routing.yml
  19. +29 −0 docroot/modules/contrib/commerce_license/commerce_license.services.yml
  20. +3 −0 docroot/modules/contrib/commerce_license/commerce_license.workflow_groups.yml
  21. +50 −0 docroot/modules/contrib/commerce_license/commerce_license.workflows.yml
  22. +14 −0 docroot/modules/contrib/commerce_license/composer.json
  23. +724 −0 docroot/modules/contrib/commerce_license/config/install/views.view.commerce_licenses.yml
  24. +11 −0 docroot/modules/contrib/commerce_license/config/schema/commerce_license.schema.yml
  25. +33 −0 docroot/modules/contrib/commerce_license/src/Annotation/CommerceLicenseType.php
  26. +377 −0 docroot/modules/contrib/commerce_license/src/Entity/License.php
  27. +94 −0 docroot/modules/contrib/commerce_license/src/Entity/LicenseInterface.php
  28. +169 −0 docroot/modules/contrib/commerce_license/src/EventSubscriber/LicenseOrderSyncSubscriber.php
  29. +40 −0 docroot/modules/contrib/commerce_license/src/EventSubscriber/ReferenceablePluginTypesSubscriber.php
  30. +142 −0 docroot/modules/contrib/commerce_license/src/ExistingRights/ExistingRightsResult.php
  31. +73 −0 docroot/modules/contrib/commerce_license/src/Form/LicenseCheckoutForm.php
  32. +372 −0 docroot/modules/contrib/commerce_license/src/Form/LicenseCreateForm.php
  33. +28 −0 docroot/modules/contrib/commerce_license/src/Form/LicenseEditForm.php
  34. +37 −0 docroot/modules/contrib/commerce_license/src/Form/LicenseForm.php
  35. +55 −0 docroot/modules/contrib/commerce_license/src/Form/LicenseSettingsForm.php
  36. +97 −0 docroot/modules/contrib/commerce_license/src/FormAlter/GrantedEntityFormAlter.php
  37. +93 −0 docroot/modules/contrib/commerce_license/src/LicenseAvailabilityCheckerExistingRights.php
  38. +70 −0 docroot/modules/contrib/commerce_license/src/LicenseListBuilder.php
  39. +49 −0 docroot/modules/contrib/commerce_license/src/LicenseOrderProcessorMultiples.php
  40. +34 −0 docroot/modules/contrib/commerce_license/src/LicensePermissionProvider.php
  41. +61 −0 docroot/modules/contrib/commerce_license/src/LicenseStorage.php
  42. +46 −0 docroot/modules/contrib/commerce_license/src/LicenseStorageInterface.php
  43. +57 −0 docroot/modules/contrib/commerce_license/src/LicenseTypeManager.php
  44. +36 −0 docroot/modules/contrib/commerce_license/src/LicenseViewsData.php
  45. +53 −0 docroot/modules/contrib/commerce_license/src/Plugin/Commerce/EntityTrait/OrderItemLicensed.php
  46. +49 −0 ...oot/modules/contrib/commerce_license/src/Plugin/Commerce/EntityTrait/ProductVariationLicensed.php
  47. +37 −0 ...erce_license/src/Plugin/Commerce/LicenseType/ExistingRightsFromConfigurationCheckingInterface.php
  48. +50 −0 ...odules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/GrantedEntityLockingInterface.php
  49. +122 −0 docroot/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/LicenseTypeBase.php
  50. +100 −0 docroot/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/LicenseTypeInterface.php
  51. +32 −0 ...s/contrib/commerce_license/src/Plugin/Commerce/LicenseType/LicenseTypeSynchronizableInterface.php
  52. +170 −0 docroot/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/Role.php
  53. +27 −0 docroot/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/SynchronizableBase.php
  54. +99 −0 docroot/modules/contrib/commerce_license/src/Plugin/views/field/EntityLabel.php
  55. +22 −0 docroot/modules/contrib/commerce_license/templates/commerce_license.html.twig
  56. +5 −0 ..._license/tests/modules/commerce_license_set_expiry_test/commerce_license_set_expiry_test.info.yml
  57. +24 −0 ...ules/commerce_license_set_expiry_test/src/Plugin/RecurringPeriod/CommerceLicenseSetExpiryTest.php
  58. +5 −0 ...commerce_license/tests/modules/commerce_license_simple_type/commerce_license_simple_type.info.yml
  59. +39 −0 .../tests/modules/commerce_license_simple_type/src/Plugin/Commerce/LicenseType/SimpleLicenseType.php
  60. +5 −0 ...dules/contrib/commerce_license/tests/modules/commerce_license_test/commerce_license_test.info.yml
  61. +34 −0 ...tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/ExistingRightsCheckConfig.php
  62. +39 −0 ...se/tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/LicenseStateChangeTest.php
  63. +35 −0 ...e_license/tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/TestLicenseBase.php
  64. +83 −0 docroot/modules/contrib/commerce_license/tests/src/Functional/RoleGrantedLockingTest.php
  65. +197 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/CommerceAvailabilityExistingRightsTest.php
  66. +200 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/CommerceOrderSyncTest.php
  67. +79 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/LicenseDeletionTest.php
  68. +152 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/LicenseRoleTypeTest.php
  69. +88 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/LicenseSetExpiryTest.php
  70. +139 −0 docroot/modules/contrib/commerce_license/tests/src/Kernel/LicenseStateChangeTest.php
  71. +126 −126 vendor/composer/installed.json
  72. +1 −1 vendor/phpspec/prophecy/composer.json
  73. +18 −1 vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,27 +1,31 @@
Address
=======
[![Build Status](https://travis-ci.org/bojanz/address.svg?branch=8.x-1.x)](https://travis-ci.org/bojanz/address)
# Address
Provides functionality for storing, validating and displaying international postal addresses.
The Drupal 8 heir to the addressfield module, powered by the [commerceguys/addressing](https://github.com/commerceguys/addressing) library.
Installation
-------------
This module needs to be installed via Composer, which will download the required libraries.
1. Add the Drupal Packagist repository
```sh
composer config repositories.drupal composer https://packages.drupal.org/8
```
This allows Composer to find Address and the other Drupal modules.
2. Download Address
## Installation
Since the module requires external libraries, Composer or Ludwig must be used.
### Composer
If your site is [managed via Composer](https://www.drupal.org/node/2718229), use Composer to
download the module, which will also download the required libraries:
```sh
composer require "drupal/address ~1.0"
```
This will download the latest release of Address.
Use 1.x-dev instead of ~1.0 to get the -dev release instead.
~1.0 downloads the latest release, use 1.x-dev to get the -dev release instead.
Use ```composer update drupal/address --with-dependencies``` to update to a new release.
### Ludwig
Otherwise, download and install [Ludwig](https://www.drupal.org/project/ludwig) which will allow you
to download the libraries separately:
1) Download Address into your modules folder.
2) Use one of Ludwig's methods to download libraries:
a) Run the ```ludwig:download``` Drupal Console command or the ```ludwig-download``` Drush command.
b) Go to ```/admin/reports/packages``` and download each library manually, then place them under address/lib as specified.
3) Enable Address.
See https://www.drupal.org/node/2404989 for more information.
Note that when using Ludwig, updating the module will require re-downloading the libraries.
Composer is recommended whenever possible.
@@ -7,8 +7,8 @@ config: entity.address_format.collection
dependencies:
- drupal:field
# Information added by Drupal.org packaging script on 2017-09-20
version: '8.x-1.2'
# Information added by Drupal.org packaging script on 2017-11-22
version: '8.x-1.3'
core: '8.x'
project: 'address'
datestamp: 1505896147
datestamp: 1511382787
@@ -2,47 +2,33 @@
namespace Drupal\address\Plugin\migrate\cckfield;
@trigger_error('AddressField is deprecated in Address 1.3 and will be be removed before Address 2.x. Use \Drupal\address\Plugin\migrate\field\AddressField instead.', E_USER_DEPRECATED);
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
use Drupal\address\Plugin\migrate\field\AddressField as BaseAddressField;
use Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface;
/**
* @MigrateCckField(
* id = "addressfield",
* core = {7},
* type_map = {
* "addressfield" = "address"
* }
* },
* source_module = "addressfield",
* destination_module = "address"
* )
*
* @deprecated in 1.3, to be removed before 2.x. Use
* \Drupal\address\Plugin\migrate\field\AddressField instead.
*/
class AddressField extends CckFieldPluginBase {
/**
* {@inheritdoc}
*/
public function getFieldFormatterMap() {
return [
'addressfield_default' => 'address_default',
];
}
/**
* {@inheritdoc}
*/
public function getFieldWidgetMap() {
return [
'addressfield_standard' => 'address_default',
];
}
class AddressField extends BaseAddressField implements MigrateCckFieldInterface {
/**
* {@inheritdoc}
*/
public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'addressfield',
'source' => $field_name,
];
$migration->mergeProcessOfProperty($field_name, $process);
return $this->processFieldValues($migration, $field_name, $data);
}
}
@@ -0,0 +1,50 @@
<?php
namespace Drupal\address\Plugin\migrate\field;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
/**
* @MigrateField(
* id = "addressfield",
* core = {7},
* type_map = {
* "addressfield" = "address"
* },
* source_module = "addressfield",
* destination_module = "address"
* )
*/
class AddressField extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function getFieldFormatterMap() {
return [
'addressfield_default' => 'address_default',
];
}
/**
* {@inheritdoc}
*/
public function getFieldWidgetMap() {
return [
'addressfield_standard' => 'address_default',
];
}
/**
* {@inheritdoc}
*/
public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'addressfield',
'source' => $field_name,
];
$migration->mergeProcessOfProperty($field_name, $process);
}
}
@@ -7,8 +7,8 @@ dependencies:
- address
- views
# Information added by Drupal.org packaging script on 2017-09-20
version: '8.x-1.2'
# Information added by Drupal.org packaging script on 2017-11-22
version: '8.x-1.3'
core: '8.x'
project: 'address'
datestamp: 1505896147
datestamp: 1511382787
@@ -0,0 +1,52 @@
<?php
namespace Drupal\Tests\address\Kernel\Plugin\migrate\field;
use Drupal\address\Plugin\migrate\field\AddressField;
use Drupal\address\Plugin\migrate\cckfield\AddressField as CckAddressField;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\Plugin\MigrationInterface;
/**
* Tests the address field field plugin.
*
* @group address
*/
class AddressFieldTest extends KernelTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = [
'address',
'migrate',
'migrate_drupal',
];
/**
* Tests discovery of the field plugin.
*/
public function testPlugin() {
$migration = $this->prophesize(MigrationInterface::class)->reveal();
$field_plugin_manager = $this->container->get('plugin.manager.migrate.field');
$definition = $field_plugin_manager->getDefinition('addressfield');
$this->assertNotEmpty($definition);
$field_plugin = $field_plugin_manager->createInstance('addressfield', [], $migration);
$this->assertInstanceOf(AddressField::class, $field_plugin);
}
/**
* Tests discovery of the cck field plugin.
*/
public function testLegacyPlugin() {
$migration = $this->prophesize(MigrationInterface::class)->reveal();
$cck_plugin_manager = $this->container->get('plugin.manager.migrate.cckfield');
$definition = $cck_plugin_manager->getDefinition('addressfield');
$this->assertNotEmpty($definition);
$cck_plugin = $cck_plugin_manager->createInstance('addressfield', [], $migration);
$this->assertInstanceOf(CckAddressField::class, $cck_plugin);
}
}
@@ -0,0 +1,23 @@
INTRODUCTION
------------
The Commerce License allows the creation of products that sell access to some
aspect of the site. This could be a role, publication of a node, and so on.
This access is controlled by a License entity, which is created for the user
when the product is purchased.
The nature of what a License entity grants is handled by License type plugins.
Each License entity will have one License type plugin associated with it.
A product variation that sells a License will have a configured License type
plugin field value. This acts as template to create the License when a user
purchases that product variation.
REQUIREMENTS
------------
This module requires the following modules:
* Commerce (https://drupal.org/project/commerce)
* Recurring Period (https://drupal.org/project/recurring_period)
Oops, something went wrong.

0 comments on commit faa128b

Please sign in to comment.