BIG REFACTORING using composer create-project drupal-composer/drupal-project

This commit is contained in:
Bachir Soussi Chiadmi 2019-01-28 17:05:29 +01:00
parent 17bb6e1dbc
commit 37689c3d4b
504 changed files with 1740 additions and 628 deletions

27
.env.example Normal file
View File

@ -0,0 +1,27 @@
#
# Copy and rename this file to .env at root of this project.
#
# A common use case is to supply database creds via the environment. Edit settings.php
# like so:
#
# $databases['default']['default'] = [
# 'database' => getenv('MYSQL_DATABASE'),
# 'driver' => 'mysql',
# 'host' => getenv('MYSQL_HOSTNAME'),
# 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
# 'password' => getenv('MYSQL_PASSWORD'),
# 'port' => getenv('MYSQL_PORT'),
# 'prefix' => '',
# 'username' => getenv('MYSQL_USER'),
# ];
#
# Uncomment and populate as needed.
# MYSQL_DATABASE=
# MYSQL_HOSTNAME=
# MYSQL_PASSWORD=
# MYSQL_PORT=
# MYSQL_USER=
# Another common use case is to set Drush's --uri via environment.
# DRUSH_OPTIONS_URI=http://example.com

55
.gitignore vendored
View File

@ -1,45 +1,24 @@
# This file contains default .gitignore rules. To use it, copy it to .gitignore, # Ignore directories generated by Composer
# and it will cause files like your settings.php and user-uploaded files to be /drush/contrib/
# excluded from Git version control. This is a common strategy to avoid
# accidentally including private information in public repositories and patch
# files.
#
# Because .gitignore can be specific to your site, this file has a different
# name; updating Drupal core will not override your custom .gitignore file.
# Ignore core when managing all of a project's dependencies with Composer
# including Drupal core.
core
# Ignore dependencies that are managed with Composer.
# Generally you should only ignore the root vendor directory. It's important
# that core/assets/vendor and any other vendor directories within contrib or
# custom module, theme, etc., are not ignored unless you purposely do so.
/vendor/ /vendor/
/modules/contrib/ /web/core/
/themes/contrib/ /web/modules/contrib/
/libraries/ /web/themes/contrib/
/web/profiles/contrib/
/web/libraries/
# Ignore configuration files that may contain sensitive information. # Ignore sensitive information
sites/*/settings*.php /web/sites/*/settings.php
sites/*/services*.yml /web/sites/*/settings.local.php
# Ignore paths that contain user-generated content. # Ignore Drupal's file directory
sites/*/files /web/sites/*/files/
sites/*/private
# Ignore SimpleTest multi-site environment. # Ignore SimpleTest multi-site environment.
sites/simpletest /web/sites/simpletest
# If you prefer to store your .gitignore file in the sites/ folder, comment # Ignore files generated by PhpStorm
# or delete the previous settings and uncomment the following ones, instead. /.idea/
# Ignore configuration files that may contain sensitive information. # Ignore .env files as they are personal
# */settings*.php /.env
# Ignore paths that contain user-generated content.
# */files
# */private
# Ignore SimpleTest multi-site environment.
simpletest

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "profiles/d8-starterkit-profile"] [submodule "web/profiles/d8-starterkit-profile"]
path = profiles/d8-starterkit-profile path = profiles/d8-starterkit-profile
url = https://figureslibres.io/gogs/bachir/d8-starterkit-profile url = https://figureslibres.io/gogs/bachir/d8-starterkit-profile

51
.travis.yml Normal file
View File

@ -0,0 +1,51 @@
language: php
dist: trusty
sudo: false
php:
- 5.6
- 7.0
- 7.1
- 7.2
env:
global:
- SIMPLETEST_DB=sqlite://tmp/site.sqlite
- SIMPLETEST_BASE_URL="http://127.0.0.1:8080"
matrix:
- RELEASE=stable COMPOSER_CHANNEL=stable
- RELEASE=dev COMPOSER_CHANNEL=stable
- RELEASE=stable COMPOSER_CHANNEL=snapshot
matrix:
exclude:
- php: 5.6
env: RELEASE=dev COMPOSER_CHANNEL=stable
- php: 5.6
env: RELEASE=stable COMPOSER_CHANNEL=snapshot
before_install:
- if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then export COMPOSER_MEMORY_LIMIT=-1; fi;
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer --verbose self-update --$COMPOSER_CHANNEL
- composer --version
install:
- composer --verbose validate
- composer --verbose install
script:
- if [[ $RELEASE = dev ]]; then composer --verbose remove --no-update drupal/console; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.7.x-dev webflo/drupal-core-require-dev:8.7.x-dev; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
- cd $TRAVIS_BUILD_DIR/web
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
# Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
# Ignore Setup group temporarily, @see https://www.drupal.org/node/2962157
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache,Setup
- ./../vendor/bin/drush
- if [[ $RELEASE = stable ]]; then ./../vendor/bin/drupal; fi;

View File

@ -1,3 +0,0 @@
Please read core/INSTALL.txt for detailed installation instructions for your
Drupal web site.

339
LICENSE Normal file
View File

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

145
README.md Normal file
View File

@ -0,0 +1,145 @@
# Composer template for Drupal projects
[![Build Status](https://travis-ci.org/drupal-composer/drupal-project.svg?branch=8.x)](https://travis-ci.org/drupal-composer/drupal-project)
This project template provides a starter kit for managing your site
dependencies with [Composer](https://getcomposer.org/).
If you want to know how to use it as replacement for
[Drush Make](https://github.com/drush-ops/drush/blob/8.x/docs/make.md) visit
the [Documentation on drupal.org](https://www.drupal.org/node/2471553).
## Usage
First you need to [install composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
> Note: The instructions below refer to the [global composer installation](https://getcomposer.org/doc/00-intro.md#globally).
You might need to replace `composer` with `php composer.phar` (or similar)
for your setup.
After that you can create the project:
```
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction
```
With `composer require ...` you can download new dependencies to your
installation.
```
cd some-dir
composer require drupal/devel:~1.0
```
The `composer create-project` command passes ownership of all files to the
project that is created. You should create a new git repository, and commit
all files not excluded by the .gitignore file.
## What does the template do?
When installing the given `composer.json` some tasks are taken care of:
* Drupal will be installed in the `web`-directory.
* Autoloader is implemented to use the generated composer autoloader in `vendor/autoload.php`,
instead of the one provided by Drupal (`web/vendor/autoload.php`).
* Modules (packages of type `drupal-module`) will be placed in `web/modules/contrib/`
* Theme (packages of type `drupal-theme`) will be placed in `web/themes/contrib/`
* Profiles (packages of type `drupal-profile`) will be placed in `web/profiles/contrib/`
* Creates default writable versions of `settings.php` and `services.yml`.
* Creates `web/sites/default/files`-directory.
* Latest version of drush is installed locally for use at `vendor/bin/drush`.
* Latest version of DrupalConsole is installed locally for use at `vendor/bin/drupal`.
* Creates environment variables based on your .env file. See [.env.example](.env.example).
## Updating Drupal Core
This project will attempt to keep all of your Drupal Core files up-to-date; the
project [drupal-composer/drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold)
is used to ensure that your scaffold files are updated every time drupal/core is
updated. If you customize any of the "scaffolding" files (commonly .htaccess),
you may need to merge conflicts if any of your modified files are updated in a
new release of Drupal core.
Follow the steps below to update your core files.
1. Run `composer update drupal/core webflo/drupal-core-require-dev symfony/* --with-dependencies` to update Drupal Core and its dependencies.
1. Run `git diff` to determine if any of the scaffolding files have changed.
Review the files for any changes and restore any customizations to
`.htaccess` or `robots.txt`.
1. Commit everything all together in a single commit, so `web` will remain in
sync with the `core` when checking out branches or running `git bisect`.
1. In the event that there are non-trivial conflicts in step 2, you may wish
to perform these steps on a branch, and use `git merge` to combine the
updated core files with your customized files. This facilitates the use
of a [three-way merge tool such as kdiff3](http://www.gitshah.com/2010/12/how-to-setup-kdiff-as-diff-tool-for-git.html). This setup is not necessary if your changes are simple;
keeping all of your modifications at the beginning or end of the file is a
good strategy to keep merges easy.
## Generate composer.json from existing project
With using [the "Composer Generate" drush extension](https://www.drupal.org/project/composer_generate)
you can now generate a basic `composer.json` file from an existing project. Note
that the generated `composer.json` might differ from this project's file.
## FAQ
### Should I commit the contrib modules I download?
Composer recommends **no**. They provide [argumentation against but also
workrounds if a project decides to do it anyway](https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).
### Should I commit the scaffolding files?
The [drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) plugin can download the scaffold files (like
index.php, update.php, …) to the web/ directory of your project. If you have not customized those files you could choose
to not check them into your version control system (e.g. git). If that is the case for your project it might be
convenient to automatically run the drupal-scaffold plugin after every install or update of your project. You can
achieve that by registering `@composer drupal:scaffold` as post-install and post-update command in your composer.json:
```json
"scripts": {
"post-install-cmd": [
"@composer drupal:scaffold",
"..."
],
"post-update-cmd": [
"@composer drupal:scaffold",
"..."
]
},
```
### How can I apply patches to downloaded modules?
If you need to apply patches (depending on the project being modified, a pull
request is often a better solution), you can do so with the
[composer-patches](https://github.com/cweagans/composer-patches) plugin.
To add a patch to drupal module foobar insert the patches section in the extra
section of composer.json:
```json
"extra": {
"patches": {
"drupal/foobar": {
"Patch description": "URL or local path to patch"
}
}
}
```
### How do I switch from packagist.drupal-composer.org to packages.drupal.org?
Follow the instructions in the [documentation on drupal.org](https://www.drupal.org/docs/develop/using-composer/using-packagesdrupalorg).
### How do I specify a PHP version ?
This project supports PHP 5.6 as minimum version (see [Drupal 8 PHP requirements](https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 7+.
To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:
```json
"config": {
"sort-packages": true,
"platform": {
"php": "5.6.40"
}
},
```

View File

@ -1,139 +0,0 @@
CONTENTS OF THIS FILE
---------------------
* About Drupal
* Configuration and features
* Installation profiles
* Appearance
* Developing for Drupal
* More information
ABOUT DRUPAL
------------
Drupal is an open source content management platform supporting a variety of
websites ranging from personal weblogs to large community-driven websites. For
more information, see the Drupal website at https://www.drupal.org, and join
the Drupal community at https://www.drupal.org/community.
Legal information about Drupal:
* Know your rights when using Drupal:
See LICENSE.txt in the "core" directory.
* Learn about the Drupal trademark and logo policy:
https://www.drupal.com/trademark
CONFIGURATION AND FEATURES
--------------------------
Drupal core (what you get when you download and extract a drupal-x.y.tar.gz or
drupal-x.y.zip file from https://www.drupal.org/project/drupal) has what you
need to get started with your website. It includes several modules (extensions
that add functionality) for common website features, such as managing content,
user accounts, image uploading, and search. Core comes with many options that
allow site-specific configuration. In addition to the core modules, there are
thousands of contributed modules (for functionality not included with Drupal
core) available for download.
More about configuration:
* Install, update, and maintain Drupal:
See INSTALL.txt and UPDATE.txt in the "core" directory.
* Learn about how to use Drupal to create your site:
https://www.drupal.org/documentation
* Follow best practices:
https://www.drupal.org/best-practices
* Download contributed modules to /modules to extend Drupal's functionality:
https://www.drupal.org/project/modules
* See also: "Developing for Drupal" for writing your own modules, below.
INSTALLATION PROFILES
---------------------
Installation profiles define additional steps (such as enabling modules,
defining content types, etc.) that run after the base installation provided
by core when Drupal is first installed. There are two basic installation
profiles provided with Drupal core.
Installation profiles from the Drupal community modify the installation process
to provide a website for a specific use case, such as a CMS for media
publishers, a web-based project tracking tool, or a full-fledged CRM for
non-profit organizations raising money and accepting donations. They can be
distributed as bare installation profiles or as "distributions". Distributions
include Drupal core, the installation profile, and all other required
extensions, such as contributed and custom modules, themes, and third-party
libraries. Bare installation profiles require you to download Drupal Core and
the required extensions separately; place the downloaded profile in the
/profiles directory before you start the installation process.
More about installation profiles and distributions:
* Read about the difference between installation profiles and distributions:
https://www.drupal.org/node/1089736
* Download contributed installation profiles and distributions:
https://www.drupal.org/project/distributions
* Develop your own installation profile or distribution:
https://www.drupal.org/docs/8/creating-distributions
APPEARANCE
----------
In Drupal, the appearance of your site is set by the theme (themes are
extensions that set fonts, colors, and layout). Drupal core comes with several
themes. More themes are available for download, and you can also create your own
custom theme.
More about themes:
* Download contributed themes to /themes to modify Drupal's appearance:
https://www.drupal.org/project/themes
* Develop your own theme:
https://www.drupal.org/docs/8/theming
DEVELOPING FOR DRUPAL
---------------------
Drupal contains an extensive API that allows you to add to and modify the
functionality of your site. The API consists of "hooks", which allow modules to
react to system events and customize Drupal's behavior, and functions that
standardize common operations such as database queries and form generation. The
flexible hook architecture means that you should never need to directly modify
the files that come with Drupal core to achieve the functionality you want;
instead, functionality modifications take the form of modules.
When you need new functionality for your Drupal site, search for existing
contributed modules. If you find a module that matches except for a bug or an
additional needed feature, change the module and contribute your improvements
back to the project in the form of a "patch". Create new custom modules only
when nothing existing comes close to what you need.
More about developing:
* Search for existing contributed modules:
https://www.drupal.org/project/modules
* Contribute a patch:
https://www.drupal.org/patch/submit
* Develop your own module:
https://www.drupal.org/developing/modules
* Follow programming best practices:
https://www.drupal.org/developing/best-practices
* Refer to the API documentation:
https://api.drupal.org/api/drupal/8
* Learn from documented Drupal API examples:
https://www.drupal.org/project/examples
MORE INFORMATION
----------------
* See the Drupal.org online documentation:
https://www.drupal.org/documentation
* For a list of security announcements, see the "Security advisories" page at
https://www.drupal.org/security (available as an RSS feed). This page also
describes how to subscribe to these announcements via email.
* For information about the Drupal security process, or to find out how to
report a potential security issue to the Drupal security team, see the
"Security team" page at https://www.drupal.org/security-team
* For information about the wide range of available support options, visit
https://www.drupal.org and click on Community and Support in the top or
bottom navigation.

View File

@ -1,106 +1,96 @@
{ {
"name": "drupal/drupal", "name": "drupal-composer/drupal-project",
"description": "Drupal is an open source content management platform powering millions of websites and applications.", "description": "Project template for Drupal 8 projects with composer",
"type": "project", "type": "project",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"authors": [
{
"name": "",
"role": ""
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": { "require": {
"composer/installers": "^1.6", "php": ">=5.6",
"wikimedia/composer-merge-plugin": "^1.4", "composer/installers": "^1.2",
"drupal/migrate_plus": "^4.0", "cweagans/composer-patches": "^1.6.5",
"drupal-composer/drupal-scaffold": "^2.5",
"drupal/computed_field": "^2.0@beta",
"drupal/console": "^1.0.2",
"drupal/core": "^8.6.0",
"drupal/migrate_plus": "4.x-dev",
"drupal/migrate_tools": "4.x-dev", "drupal/migrate_tools": "4.x-dev",
"drupal/config_devel": "^1.2",
"drupal/examples": "1.x-dev",
"drupal/synonyms": "1.x-dev",
"drupal/address": "^1.4",
"drupal/telephone_formatter": "^1.0@beta", "drupal/telephone_formatter": "^1.0@beta",
"drupal/video_embed_field": "^2.0", "drupal/telephone_validation": "^2.1",
"drupal/computed_field": "^2.0@alpha", "drush/drush": "^9.0.0",
"drupal/cshs": "1.x-dev", "vlucas/phpdotenv": "^2.4",
"drupal/views_ef_fieldset": "1.x-dev", "webflo/drupal-finder": "^1.0.0",
"drupal/pagerer": "^1.4", "webmozart/path-util": "^2.3",
"d3/d3": "3.5.*", "wikimedia/composer-merge-plugin": "^1.4",
"components/highlightjs": "9.7.*" "zaporylie/composer-drupal-optimizations": "^1.0"
}, },
"replace": { "require-dev": {
"drupal/core": "^8.6" "webflo/drupal-core-require-dev": "^8.6.0"
},
"conflict": {
"drupal/drupal": "*"
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"config": { "config": {
"preferred-install": "dist", "sort-packages": true
"autoloader-suffix": "Drupal8" },
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"files": ["load.environment.php"]
},
"scripts": {
"pre-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"pre-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
]
}, },
"extra": { "extra": {
"_readme": [ "composer-exit-on-patch-failure": true,
"By default Drupal loads the autoloader from ./vendor/autoload.php.", "patchLevel": {
"To change the autoloader you can edit ./autoload.php.", "drupal/core": "-p2"
"This file specifies the packages.drupal.org repository.", },
"You can read more about this composer repository at:",
"https://www.drupal.org/node/2718229"
],
"merge-plugin": { "merge-plugin": {
"include": [ "include": [
"core/composer.json", "web/profiles/d8-starterkit-profile/composer.json"
"profiles/d8-starterkit-profile/composer.json"
], ],
"recurse": true, "recurse": true,
"replace": false, "replace": false,
"merge-extra": true "merge-extra": true
}, },
"installer-paths": { "installer-paths": {
"core": ["type:drupal-core"], "web/core": ["type:drupal-core"],
"modules/contrib/{$name}": ["type:drupal-module"], "web/libraries/{$name}": ["type:drupal-library"],
"profiles/contrib/{$name}": ["type:drupal-profile"], "web/modules/contrib/{$name}": ["type:drupal-module"],
"themes/contrib/{$name}": ["type:drupal-theme"], "web/profiles/contrib/{$name}": ["type:drupal-profile"],
"drush/contrib/{$name}": ["type:drupal-drush"], "web/themes/contrib/{$name}": ["type:drupal-theme"],
"modules/custom/{$name}": ["type:drupal-custom-module"], "drush/Commands/{$name}": ["type:drupal-drush"]
"themes/custom/{$name}": ["type:drupal-custom-theme"],
"libraries/{$name}": ["type:drupal-library"]
}
}, },
"autoload": { "drupal-scaffold": {
"psr-4": { "initial": {
"Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer" ".editorconfig": "../.editorconfig",
} ".gitattributes": "../.gitattributes"
},
"scripts": {
"pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
"post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
"post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
"drupal-phpunit-upgrade": "@composer update phpunit/phpunit --with-dependencies --no-progress",
"phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
"phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "d3/d3",
"version": "v3.5.17",
"type": "drupal-library",
"dist": {
"url": "https://github.com/d3/d3/archive/v3.5.17.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "components/highlightjs",
"version": "9.7.0",
"type": "drupal-library",
"dist": {
"url": "https://github.com/components/highlightjs/archive/9.7.0.zip",
"type": "zip"
} }
} }
} }
]
} }

745
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "f857de64bd17f2661ef282f4b5bc17c5", "content-hash": "642c91c0457b11187936b0b39f8371a2",
"packages": [ "packages": [
{ {
"name": "alchemy/zippy", "name": "alchemy/zippy",
@ -226,17 +226,6 @@
], ],
"time": "2018-10-21T23:38:05+00:00" "time": "2018-10-21T23:38:05+00:00"
}, },
{
"name": "components/highlightjs",
"version": "9.7.0",
"dist": {
"type": "zip",
"url": "https://github.com/components/highlightjs/archive/9.7.0.zip",
"reference": null,
"shasum": null
},
"type": "drupal-library"
},
{ {
"name": "composer/installers", "name": "composer/installers",
"version": "v1.6.0", "version": "v1.6.0",
@ -1004,17 +993,6 @@
"description": "Provides a way to patch Composer packages.", "description": "Provides a way to patch Composer packages.",
"time": "2018-05-11T18:00:16+00:00" "time": "2018-05-11T18:00:16+00:00"
}, },
{
"name": "d3/d3",
"version": "v3.5.17",
"dist": {
"type": "zip",
"url": "https://github.com/d3/d3/archive/v3.5.17.zip",
"reference": null,
"shasum": null
},
"type": "drupal-library"
},
{ {
"name": "dflydev/dot-access-configuration", "name": "dflydev/dot-access-configuration",
"version": "v1.0.3", "version": "v1.0.3",
@ -1221,35 +1199,35 @@
}, },
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "v1.2.7", "version": "v1.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/annotations.git", "url": "https://github.com/doctrine/annotations.git",
"reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535" "reference": "54cacc9b81758b14e3ce750f205a393d52339e97"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535", "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97",
"reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535", "reference": "54cacc9b81758b14e3ce750f205a393d52339e97",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/lexer": "1.*", "doctrine/lexer": "1.*",
"php": ">=5.3.2" "php": "^5.6 || ^7.0"
}, },
"require-dev": { "require-dev": {
"doctrine/cache": "1.*", "doctrine/cache": "1.*",
"phpunit/phpunit": "4.*" "phpunit/phpunit": "^5.7"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.3.x-dev" "dev-master": "1.4.x-dev"
} }
}, },
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"Doctrine\\Common\\Annotations\\": "lib/" "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -1285,7 +1263,7 @@
"docblock", "docblock",
"parser" "parser"
], ],
"time": "2015-08-31T12:32:49+00:00" "time": "2017-02-24T16:22:25+00:00"
}, },
{ {
"name": "doctrine/cache", "name": "doctrine/cache",
@ -1618,6 +1596,50 @@
], ],
"time": "2014-09-09T13:34:57+00:00" "time": "2014-09-09T13:34:57+00:00"
}, },
{
"name": "drupal-composer/drupal-scaffold",
"version": "2.5.4",
"source": {
"type": "git",
"url": "https://github.com/drupal-composer/drupal-scaffold.git",
"reference": "fc6bf4ceecb5d47327f54d48d4d4f67b17da956d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/drupal-composer/drupal-scaffold/zipball/fc6bf4ceecb5d47327f54d48d4d4f67b17da956d",
"reference": "fc6bf4ceecb5d47327f54d48d4d4f67b17da956d",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0.0",
"composer/semver": "^1.4",
"php": ">=5.4.5"
},
"require-dev": {
"composer/composer": "dev-master",
"g1a/composer-test-scenarios": "^2.1.0",
"phpunit/phpunit": "^6",
"squizlabs/php_codesniffer": "^2.8"
},
"type": "composer-plugin",
"extra": {
"class": "DrupalComposer\\DrupalScaffold\\Plugin",
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": {
"psr-4": {
"DrupalComposer\\DrupalScaffold\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"description": "Composer Plugin for updating the Drupal scaffold files when using drupal/core",
"time": "2018-07-27T10:07:07+00:00"
},
{ {
"name": "drupal/actions_permissions", "name": "drupal/actions_permissions",
"version": "2.4.0", "version": "2.4.0",
@ -2080,10 +2102,18 @@
"name": "AjitS", "name": "AjitS",
"homepage": "https://www.drupal.org/user/981944" "homepage": "https://www.drupal.org/user/981944"
}, },
{
"name": "boshtian",
"homepage": "https://www.drupal.org/user/1773456"
},
{ {
"name": "dandrews", "name": "dandrews",
"homepage": "https://www.drupal.org/user/2014490" "homepage": "https://www.drupal.org/user/2014490"
}, },
{
"name": "darksnow",
"homepage": "https://www.drupal.org/user/391915"
},
{ {
"name": "johnennew", "name": "johnennew",
"homepage": "https://www.drupal.org/user/1150042" "homepage": "https://www.drupal.org/user/1150042"
@ -3162,6 +3192,10 @@
"name": "jmiccolis", "name": "jmiccolis",
"homepage": "https://www.drupal.org/user/31731" "homepage": "https://www.drupal.org/user/31731"
}, },
{
"name": "nedjo",
"homepage": "https://www.drupal.org/user/4481"
},
{ {
"name": "tekante", "name": "tekante",
"homepage": "https://www.drupal.org/user/640024" "homepage": "https://www.drupal.org/user/640024"
@ -3186,6 +3220,245 @@
"docs": "https://github.com/oddhill/context" "docs": "https://github.com/oddhill/context"
} }
}, },
{
"name": "drupal/core",
"version": "8.6.7",
"source": {
"type": "git",
"url": "https://github.com/drupal/core.git",
"reference": "e0a09bda1da7552204464894811a59387608c9f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/drupal/core/zipball/e0a09bda1da7552204464894811a59387608c9f9",
"reference": "e0a09bda1da7552204464894811a59387608c9f9",
"shasum": ""
},
"require": {
"asm89/stack-cors": "^1.1",
"composer/semver": "^1.0",
"doctrine/annotations": "^1.2",
"doctrine/common": "^2.5",
"easyrdf/easyrdf": "^0.9",
"egulias/email-validator": "^1.2",
"ext-date": "*",
"ext-dom": "*",
"ext-filter": "*",
"ext-gd": "*",
"ext-hash": "*",
"ext-json": "*",
"ext-pcre": "*",
"ext-pdo": "*",
"ext-session": "*",
"ext-simplexml": "*",
"ext-spl": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"guzzlehttp/guzzle": "^6.2.1",
"masterminds/html5": "^2.1",
"paragonie/random_compat": "^1.0|^2.0",
"php": "^5.5.9|>=7.0.8",
"stack/builder": "^1.0",
"symfony-cmf/routing": "^1.4",
"symfony/class-loader": "~3.4.0",
"symfony/console": "~3.4.0",
"symfony/dependency-injection": "~3.4.0",
"symfony/event-dispatcher": "~3.4.0",
"symfony/http-foundation": "~3.4.14",
"symfony/http-kernel": "~3.4.14",
"symfony/polyfill-iconv": "^1.0",
"symfony/process": "~3.4.0",
"symfony/psr-http-message-bridge": "^1.0",
"symfony/routing": "~3.4.0",
"symfony/serializer": "~3.4.0",
"symfony/translation": "~3.4.0",
"symfony/validator": "~3.4.0",
"symfony/yaml": "~3.4.5",
"twig/twig": "^1.35.0",
"typo3/phar-stream-wrapper": "^2.0.1",
"zendframework/zend-diactoros": "^1.1",
"zendframework/zend-feed": "^2.4"
},
"conflict": {
"drush/drush": "<8.1.10"
},
"replace": {
"drupal/action": "self.version",
"drupal/aggregator": "self.version",
"drupal/automated_cron": "self.version",
"drupal/ban": "self.version",
"drupal/bartik": "self.version",
"drupal/basic_auth": "self.version",
"drupal/big_pipe": "self.version",
"drupal/block": "self.version",
"drupal/block_content": "self.version",
"drupal/block_place": "self.version",
"drupal/book": "self.version",
"drupal/breakpoint": "self.version",
"drupal/ckeditor": "self.version",
"drupal/classy": "self.version",
"drupal/color": "self.version",
"drupal/comment": "self.version",
"drupal/config": "self.version",
"drupal/config_translation": "self.version",
"drupal/contact": "self.version",
"drupal/content_moderation": "self.version",
"drupal/content_translation": "self.version",
"drupal/contextual": "self.version",
"drupal/core-annotation": "self.version",
"drupal/core-assertion": "self.version",
"drupal/core-bridge": "self.version",
"drupal/core-class-finder": "self.version",
"drupal/core-datetime": "self.version",
"drupal/core-dependency-injection": "self.version",
"drupal/core-diff": "self.version",
"drupal/core-discovery": "self.version",
"drupal/core-event-dispatcher": "self.version",
"drupal/core-file-cache": "self.version",
"drupal/core-filesystem": "self.version",
"drupal/core-gettext": "self.version",
"drupal/core-graph": "self.version",
"drupal/core-http-foundation": "self.version",
"drupal/core-php-storage": "self.version",
"drupal/core-plugin": "self.version",
"drupal/core-proxy-builder": "self.version",
"drupal/core-render": "self.version",
"drupal/core-serialization": "self.version",
"drupal/core-transliteration": "self.version",
"drupal/core-utility": "self.version",
"drupal/core-uuid": "self.version",
"drupal/datetime": "self.version",
"drupal/datetime_range": "self.version",
"drupal/dblog": "self.version",
"drupal/dynamic_page_cache": "self.version",
"drupal/editor": "self.version",
"drupal/entity_reference": "self.version",
"drupal/field": "self.version",
"drupal/field_layout": "self.version",
"drupal/field_ui": "self.version",
"drupal/file": "self.version",
"drupal/filter": "self.version",
"drupal/forum": "self.version",
"drupal/hal": "self.version",
"drupal/help": "self.version",
"drupal/history": "self.version",
"drupal/image": "self.version",
"drupal/inline_form_errors": "self.version",
"drupal/language": "self.version",
"drupal/layout_builder": "self.version",
"drupal/layout_discovery": "self.version",
"drupal/link": "self.version",
"drupal/locale": "self.version",
"drupal/media": "self.version",
"drupal/media_library": "self.version",
"drupal/menu_link_content": "self.version",
"drupal/menu_ui": "self.version",
"drupal/migrate": "self.version",
"drupal/migrate_drupal": "self.version",
"drupal/migrate_drupal_multilingual": "self.version",
"drupal/migrate_drupal_ui": "self.version",
"drupal/minimal": "self.version",
"drupal/node": "self.version",
"drupal/options": "self.version",
"drupal/page_cache": "self.version",
"drupal/path": "self.version",
"drupal/quickedit": "self.version",
"drupal/rdf": "self.version",
"drupal/responsive_image": "self.version",
"drupal/rest": "self.version",
"drupal/search": "self.version",
"drupal/serialization": "self.version",
"drupal/settings_tray": "self.version",
"drupal/seven": "self.version",
"drupal/shortcut": "self.version",
"drupal/simpletest": "self.version",
"drupal/standard": "self.version",
"drupal/stark": "self.version",
"drupal/statistics": "self.version",
"drupal/syslog": "self.version",
"drupal/system": "self.version",
"drupal/taxonomy": "self.version",
"drupal/telephone": "self.version",
"drupal/text": "self.version",
"drupal/toolbar": "self.version",
"drupal/tour": "self.version",
"drupal/tracker": "self.version",
"drupal/update": "self.version",
"drupal/user": "self.version",
"drupal/views": "self.version",
"drupal/views_ui": "self.version",
"drupal/workflows": "self.version",
"drupal/workspaces": "self.version"
},
"require-dev": {
"behat/mink": "1.7.x-dev",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "1.3.x-dev",
"drupal/coder": "^8.2.12",
"jcalderonzumba/gastonjs": "^1.0.2",
"jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
"mikey179/vfsstream": "^1.2",
"phpspec/prophecy": "^1.7",
"phpunit/phpunit": "^4.8.35 || ^6.5",
"symfony/css-selector": "^3.4.0",
"symfony/debug": "^3.4.0",
"symfony/phpunit-bridge": "^3.4.3"
},
"type": "drupal-core",
"extra": {
"merge-plugin": {
"require": [
"core/lib/Drupal/Component/Annotation/composer.json",
"core/lib/Drupal/Component/Assertion/composer.json",
"core/lib/Drupal/Component/Bridge/composer.json",
"core/lib/Drupal/Component/ClassFinder/composer.json",
"core/lib/Drupal/Component/Datetime/composer.json",
"core/lib/Drupal/Component/DependencyInjection/composer.json",
"core/lib/Drupal/Component/Diff/composer.json",
"core/lib/Drupal/Component/Discovery/composer.json",
"core/lib/Drupal/Component/EventDispatcher/composer.json",
"core/lib/Drupal/Component/FileCache/composer.json",
"core/lib/Drupal/Component/FileSystem/composer.json",
"core/lib/Drupal/Component/Gettext/composer.json",
"core/lib/Drupal/Component/Graph/composer.json",
"core/lib/Drupal/Component/HttpFoundation/composer.json",
"core/lib/Drupal/Component/PhpStorage/composer.json",
"core/lib/Drupal/Component/Plugin/composer.json",
"core/lib/Drupal/Component/ProxyBuilder/composer.json",
"core/lib/Drupal/Component/Render/composer.json",
"core/lib/Drupal/Component/Serialization/composer.json",
"core/lib/Drupal/Component/Transliteration/composer.json",
"core/lib/Drupal/Component/Utility/composer.json",
"core/lib/Drupal/Component/Uuid/composer.json"
],
"recurse": false,
"replace": false,
"merge-extra": false
}
},
"autoload": {
"psr-4": {
"Drupal\\Core\\": "lib/Drupal/Core",
"Drupal\\Component\\": "lib/Drupal/Component",
"Drupal\\Driver\\": "../drivers/lib/Drupal/Driver"
},
"classmap": [
"lib/Drupal.php",
"lib/Drupal/Component/Utility/Timer.php",
"lib/Drupal/Component/Utility/Unicode.php",
"lib/Drupal/Core/Database/Database.php",
"lib/Drupal/Core/DrupalKernel.php",
"lib/Drupal/Core/DrupalKernelInterface.php",
"lib/Drupal/Core/Site/Settings.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"time": "2019-01-16T23:30:03+00:00"
},
{ {
"name": "drupal/cshs", "name": "drupal/cshs",
"version": "dev-1.x", "version": "dev-1.x",
@ -4084,116 +4357,6 @@
"source": "http://cgit.drupalcode.org/entity_clone" "source": "http://cgit.drupalcode.org/entity_clone"
} }
}, },
{
"name": "drupal/examples",
"version": "dev-1.x",
"source": {
"type": "git",
"url": "https://git.drupal.org/project/examples",
"reference": "0be75808520a7c921ad7c87ac1cc87d716f5dc51"
},
"require": {
"drupal/core": "*"
},
"require-dev": {
"drupal/stream_wrapper_example": "*"
},
"suggest": {
"drupal/devel": "Some modules will be able to pretty-print PHP with this module."
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.x-dev",
"datestamp": "1536200285",
"security-coverage": {
"status": "not-covered",
"message": "Project has not opted into security advisory coverage!"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Dave Reid",
"homepage": "https://www.drupal.org/user/53892"
},
{
"name": "Itangalo",
"homepage": "https://www.drupal.org/user/153998"
},
{
"name": "Mile23",
"homepage": "https://www.drupal.org/user/116231"
},
{
"name": "Torenware",
"homepage": "https://www.drupal.org/user/18784"
},
{
"name": "add1sun",
"homepage": "https://www.drupal.org/user/65088"
},
{
"name": "cyberswat",
"homepage": "https://www.drupal.org/user/27802"
},
{
"name": "ilo",
"homepage": "https://www.drupal.org/user/118449"
},
{
"name": "jhodgdon",
"homepage": "https://www.drupal.org/user/155601"
},
{
"name": "jn2",
"homepage": "https://www.drupal.org/user/1001014"
},
{
"name": "katbailey",
"homepage": "https://www.drupal.org/user/172987"
},
{
"name": "linclark",
"homepage": "https://www.drupal.org/user/396253"
},
{
"name": "marvil07",
"homepage": "https://www.drupal.org/user/132175"
},
{
"name": "mikl",
"homepage": "https://www.drupal.org/user/58679"
},
{
"name": "rfay",
"homepage": "https://www.drupal.org/user/30906"
},
{
"name": "socketwench",
"homepage": "https://www.drupal.org/user/65793"
},
{
"name": "yched",
"homepage": "https://www.drupal.org/user/39567"
}
],
"description": "The Examples for Developers project aims to provide high-quality, well-documented API examples for a broad range of Drupal core functionality.",
"homepage": "https://www.drupal.org/project/examples",
"support": {
"source": "http://cgit.drupalcode.org/examples",
"issues": "https://www.drupal.org/project/issues/examples",
"documentation": "https://api.drupal.org/api/examples"
},
"time": "2018-09-10T23:01:03+00:00"
},
{ {
"name": "drupal/extlink", "name": "drupal/extlink",
"version": "1.1.0", "version": "1.1.0",
@ -5395,17 +5558,11 @@
}, },
{ {
"name": "drupal/migrate_plus", "name": "drupal/migrate_plus",
"version": "4.1.0", "version": "dev-4.x",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupal.org/project/migrate_plus", "url": "https://git.drupal.org/project/migrate_plus",
"reference": "8.x-4.1" "reference": "022baac45c5b1d630b18cd90e1648d0932cc3478"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/migrate_plus-8.x-4.1.zip",
"reference": "8.x-4.1",
"shasum": "cfd7ef2b17ede664b2b74eb101032a03c386457e"
}, },
"require": { "require": {
"drupal/core": "^8.3" "drupal/core": "^8.3"
@ -5425,11 +5582,11 @@
"dev-4.x": "4.x-dev" "dev-4.x": "4.x-dev"
}, },
"drupal": { "drupal": {
"version": "8.x-4.1", "version": "8.x-4.0+17-dev",
"datestamp": "1546879080", "datestamp": "1546539780",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "not-covered",
"message": "Covered by Drupal's security advisory policy" "message": "Dev releases are not covered by Drupal security advisories."
} }
} }
}, },
@ -5454,7 +5611,8 @@
"source": "https://cgit.drupalcode.org/migrate_plus", "source": "https://cgit.drupalcode.org/migrate_plus",
"issues": "https://www.drupal.org/project/issues/migrate_plus", "issues": "https://www.drupal.org/project/issues/migrate_plus",
"irc": "irc://irc.freenode.org/drupal-migrate" "irc": "irc://irc.freenode.org/drupal-migrate"
} },
"time": "2019-01-03T18:20:23+00:00"
}, },
{ {
"name": "drupal/migrate_tools", "name": "drupal/migrate_tools",
@ -6216,14 +6374,20 @@
}, },
{ {
"name": "drupal/synonyms", "name": "drupal/synonyms",
"version": "dev-1.x", "version": "1.0.0-alpha1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupal.org/project/synonyms", "url": "https://git.drupal.org/project/synonyms",
"reference": "5327ef244bad11e859eed9ff71b49cb8f9955190" "reference": "8.x-1.0-alpha1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/synonyms-8.x-1.0-alpha1.zip",
"reference": "8.x-1.0-alpha1",
"shasum": "98d39b5b0a26c7b5f9e6dfc4f72285ad014d14f4"
}, },
"require": { "require": {
"drupal/core": "^8.2" "drupal/core": "~8.0"
}, },
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
@ -6231,11 +6395,11 @@
"dev-1.x": "1.x-dev" "dev-1.x": "1.x-dev"
}, },
"drupal": { "drupal": {
"version": "8.x-1.0-alpha1+4-dev", "version": "8.x-1.0-alpha1",
"datestamp": "1520765584", "datestamp": "1477604941",
"security-coverage": { "security-coverage": {
"status": "not-covered", "status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories." "message": "Alpha releases are not covered by Drupal security advisories."
} }
} }
}, },
@ -6261,8 +6425,7 @@
"homepage": "https://www.drupal.org/project/synonyms", "homepage": "https://www.drupal.org/project/synonyms",
"support": { "support": {
"source": "http://cgit.drupalcode.org/synonyms" "source": "http://cgit.drupalcode.org/synonyms"
}, }
"time": "2018-10-21T17:05:25+00:00"
}, },
{ {
"name": "drupal/telephone_formatter", "name": "drupal/telephone_formatter",
@ -6317,6 +6480,56 @@
"issues": "http://drupal.org/project/issues/telephone_formatter" "issues": "http://drupal.org/project/issues/telephone_formatter"
} }
}, },
{
"name": "drupal/telephone_validation",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://git.drupal.org/project/telephone_validation",
"reference": "8.x-2.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/telephone_validation-8.x-2.1.zip",
"reference": "8.x-2.1",
"shasum": "fcdb0c3c5541b06e6dd469a7aacefd2d0a891b74"
},
"require": {
"drupal/core": "^8.0",
"drupal/telephone": "*",
"giggsey/libphonenumber-for-php": "~8.0"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.1",
"datestamp": "1527165785",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "zaporylie",
"homepage": "https://www.drupal.org/user/1532844"
}
],
"description": "Use 3rd party library to validate telephone field.",
"homepage": "http://drupal.org/project/telephone_validation",
"support": {
"source": "http://cgit.drupalcode.org/telephone_validation",
"issues": "http://drupal.org/project/issues/telephone_validation"
}
},
{ {
"name": "drupal/token", "name": "drupal/token",
"version": "1.5.0", "version": "1.5.0",
@ -6845,8 +7058,7 @@
"status": "not-covered", "status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories." "message": "Dev releases are not covered by Drupal security advisories."
} }
}, }
"patches_applied": []
}, },
"notification-url": "https://packages.drupal.org/8/downloads", "notification-url": "https://packages.drupal.org/8/downloads",
"license": [ "license": [
@ -9142,7 +9354,7 @@
}, },
{ {
"name": "Gert de Pagter", "name": "Gert de Pagter",
"email": "BackEndTea@gmail.com" "email": "backendtea@gmail.com"
} }
], ],
"description": "Symfony polyfill for ctype functions", "description": "Symfony polyfill for ctype functions",
@ -9945,6 +10157,96 @@
], ],
"time": "2019-01-14T14:59:29+00:00" "time": "2019-01-14T14:59:29+00:00"
}, },
{
"name": "typo3/phar-stream-wrapper",
"version": "v2.0.1",
"source": {
"type": "git",
"url": "https://github.com/TYPO3/phar-stream-wrapper.git",
"reference": "0469d9fefa0146ea4299d3b11cfbb76faa7045bf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/TYPO3/phar-stream-wrapper/zipball/0469d9fefa0146ea4299d3b11cfbb76faa7045bf",
"reference": "0469d9fefa0146ea4299d3b11cfbb76faa7045bf",
"shasum": ""
},
"require": {
"php": "^5.3.3|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36"
},
"type": "library",
"autoload": {
"psr-4": {
"TYPO3\\PharStreamWrapper\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Interceptors for PHP's native phar:// stream handling",
"homepage": "https://typo3.org/",
"keywords": [
"phar",
"php",
"security",
"stream-wrapper"
],
"time": "2018-10-18T08:46:28+00:00"
},
{
"name": "vlucas/phpdotenv",
"version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/vlucas/phpdotenv.git",
"reference": "cfd5dc225767ca154853752abc93aeec040fcf36"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/cfd5dc225767ca154853752abc93aeec040fcf36",
"reference": "cfd5dc225767ca154853752abc93aeec040fcf36",
"shasum": ""
},
"require": {
"php": ">=5.3.9"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.5-dev"
}
},
"autoload": {
"psr-4": {
"Dotenv\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Vance Lucas",
"email": "vance@vancelucas.com",
"homepage": "http://www.vancelucas.com"
}
],
"description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
"keywords": [
"dotenv",
"env",
"environment"
],
"time": "2018-10-30T17:29:25+00:00"
},
{ {
"name": "webflo/drupal-finder", "name": "webflo/drupal-finder",
"version": "1.1.0", "version": "1.1.0",
@ -10128,6 +10430,49 @@
"description": "Composer plugin to merge multiple composer.json files", "description": "Composer plugin to merge multiple composer.json files",
"time": "2017-04-25T02:31:25+00:00" "time": "2017-04-25T02:31:25+00:00"
}, },
{
"name": "zaporylie/composer-drupal-optimizations",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/zaporylie/composer-drupal-optimizations.git",
"reference": "cc5eb9f0b5fa664885765748ce5190c1de7d2571"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zaporylie/composer-drupal-optimizations/zipball/cc5eb9f0b5fa664885765748ce5190c1de7d2571",
"reference": "cc5eb9f0b5fa664885765748ce5190c1de7d2571",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.1",
"drupal/core": "^8.5"
},
"require-dev": {
"composer/composer": "^1.6"
},
"type": "composer-plugin",
"extra": {
"class": "zaporylie\\ComposerDrupalOptimizations\\Plugin"
},
"autoload": {
"psr-4": {
"zaporylie\\ComposerDrupalOptimizations\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Jakub Piasecki",
"email": "jakub@piaseccy.pl"
}
],
"description": "Composer plugin to improve composer performance for Drupal projects",
"time": "2018-07-15T18:04:58+00:00"
},
{ {
"name": "zendframework/zend-diactoros", "name": "zendframework/zend-diactoros",
"version": "1.8.6", "version": "1.8.6",
@ -12469,23 +12814,58 @@
], ],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"time": "2017-04-07T12:08:54+00:00" "time": "2017-04-07T12:08:54+00:00"
},
{
"name": "webflo/drupal-core-require-dev",
"version": "8.6.7",
"source": {
"type": "git",
"url": "https://github.com/webflo/drupal-core-require-dev.git",
"reference": "7a65363ed9d6a0a2030252629f1ed9e76693094e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webflo/drupal-core-require-dev/zipball/7a65363ed9d6a0a2030252629f1ed9e76693094e",
"reference": "7a65363ed9d6a0a2030252629f1ed9e76693094e",
"shasum": ""
},
"require": {
"behat/mink": "1.7.x-dev",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "1.3.x-dev",
"drupal/coder": "^8.2.12",
"drupal/core": "8.6.7",
"jcalderonzumba/gastonjs": "^1.0.2",
"jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
"mikey179/vfsstream": "^1.2",
"phpspec/prophecy": "^1.7",
"phpunit/phpunit": "^4.8.35 || ^6.5",
"symfony/css-selector": "^3.4.0",
"symfony/debug": "^3.4.0",
"symfony/phpunit-bridge": "^3.4.3"
},
"type": "metapackage",
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"description": "require-dev dependencies from drupal/core",
"time": "2019-01-17T00:01:35+00:00"
} }
], ],
"aliases": [], "aliases": [],
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": { "stability-flags": {
"drupal/computed_field": 10,
"drupal/migrate_plus": 20,
"drupal/migrate_tools": 20, "drupal/migrate_tools": 20,
"drupal/examples": 20,
"drupal/synonyms": 20,
"drupal/telephone_formatter": 10, "drupal/telephone_formatter": 10,
"drupal/computed_field": 15,
"drupal/cshs": 20,
"drupal/views_ef_fieldset": 20,
"drupal/advanced_text_formatter": 10, "drupal/advanced_text_formatter": 10,
"drupal/autocomplete_deluxe": 10, "drupal/autocomplete_deluxe": 10,
"drupal/better_exposed_filters": 15, "drupal/better_exposed_filters": 15,
"drupal/better_messages": 15, "drupal/better_messages": 15,
"drupal/bulkdelete": 20, "drupal/bulkdelete": 20,
"drupal/cshs": 20,
"drupal/content_lock": 15, "drupal/content_lock": 15,
"drupal/context": 10, "drupal/context": 10,
"drupal/domain": 20, "drupal/domain": 20,
@ -12505,30 +12885,17 @@
"drupal/pathologic": 15, "drupal/pathologic": 15,
"drupal/profile": 5, "drupal/profile": 5,
"drupal/smtp": 10, "drupal/smtp": 10,
"drupal/synonyms": 15,
"drupal/translation_views": 15, "drupal/translation_views": 15,
"drupal/toolbar_themes": 15, "drupal/toolbar_themes": 15,
"drupal/ultimate_cron": 15, "drupal/ultimate_cron": 15,
"drupal/workflow": 20, "drupal/views_ef_fieldset": 20,
"behat/mink": 20, "drupal/workflow": 20
"behat/mink-selenium2-driver": 20
}, },
"prefer-stable": true, "prefer-stable": true,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"ext-date": "*", "php": ">=5.6"
"ext-dom": "*",
"ext-filter": "*",
"ext-gd": "*",
"ext-hash": "*",
"ext-json": "*",
"ext-pcre": "*",
"ext-pdo": "*",
"ext-session": "*",
"ext-simplexml": "*",
"ext-spl": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"php": "^5.5.9|>=7.0.8"
}, },
"platform-dev": [] "platform-dev": []
} }

View File

@ -0,0 +1,41 @@
uuid: 2ed180c5-f5fc-4d40-b8df-72490058ea59
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.breve.body
- node.type.breve
module:
- text
- user
id: node.breve.teaser
targetEntityType: node
bundle: breve
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
settings:
trim_length: 600
third_party_settings: { }
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
field_linked_materials: true
field_memo: true
field_migration: true
field_showroom: true
field_source: true
field_tags: true
field_thesaurus: true
field_video: true
field_visuel: true
field_workflow: true
langcode: true

View File

@ -0,0 +1,49 @@
uuid: 8d1f0d2a-52ed-454f-a56f-80bd7719be36
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.materiau.body
- node.type.materiau
module:
- text
- user
id: node.materiau.teaser
targetEntityType: node
bundle: materiau
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
settings:
trim_length: 600
third_party_settings: { }
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
field_attachments: true
field_distributor: true
field_famille: true
field_index: true
field_linked_breves: true
field_linked_materials: true
field_localisation_old: true
field_manufacturer: true
field_materiau_images: true
field_memo: true
field_migration: true
field_reference: true
field_samples: true
field_short_description: true
field_tags: true
field_thesaurus: true
field_video: true
field_workflow: true
langcode: true

Some files were not shown because too many files have changed in this diff Show More