All the commands below assume you are on mac or linux distribution OS.
- Docker Desktop
- curl: Is installed by default on Mac
All the commands below assume you are on mac or linux distribution OS.
<?php | |
$databases['default']['default'] = [ | |
'database' => getenv('DB_NAME'), | |
'username' => getenv('DB_USER'), | |
'password' => getenv('DB_PASSWORD'), | |
'host' => getenv('DB_HOST'), | |
'port' => getenv('DB_PORT'), | |
'driver' => 'mysql', | |
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', |
<?php | |
namespace Drupal\hello_world\Form; | |
use Drupal\Component\Utility\Environment; | |
use Drupal\Component\Utility\Html; | |
use Drupal\Component\Utility\Unicode; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
<?php | |
namespace Drupal\administrate_esr; | |
use Drupal\address\AddressInterface; | |
use Drupal\commerce_order\Entity\OrderInterface; | |
use Drupal\Core\Config\ConfigFactoryInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Logger\LoggerChannelFactoryInterface; | |
use Drupal\Driver\Exception\Exception; |
<?php | |
namespace Drupal\custom_commerce_recurring; | |
use Drupal\commerce_order\Entity\OrderInterface; | |
use Drupal\commerce_recurring\RecurringOrderManager as BaseRecurringOrderManager; | |
use Drupal\commerce_recurring\RecurringOrderManagerInterface; | |
use Drupal\Component\Datetime\TimeInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; |
<?php | |
namespace Drupal\customize_commerce\ContextProvider; | |
use Drupal\commerce_store\CurrentStoreInterface; | |
use Drupal\Core\Cache\CacheableMetadata; | |
use Drupal\Core\Plugin\Context\Context; | |
use Drupal\Core\Plugin\Context\ContextDefinition; | |
use Drupal\Core\Plugin\Context\ContextProviderInterface; | |
use Drupal\Core\StringTranslation\StringTranslationTrait; |
<?php | |
namespace Drupal\wh_signup\EventSubscriber; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
use Symfony\Component\HttpKernel\KernelEvents; |
Old site:
drush sql-dump
to backup database
New site:
composer create-project drupal-composer/drupal-project:8.x-dev newsitefolder --prefer-dist --no-progress --no-interaction
cd newsitefolder
composer require <all of your modules here, as drupal/whatever>
If running SELinux on CentOS, on others it may be a different context
chcon -R -t httpd_sys_content_rw_t web
$ pwd