Skip to content

Instantly share code, notes, and snippets.

@rowild
Last active June 11, 2020 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rowild/0915ed0ae955b9a5cc6d59f62c06eb13 to your computer and use it in GitHub Desktop.
Save rowild/0915ed0ae955b9a5cc6d59f62c06eb13 to your computer and use it in GitHub Desktop.
Setup the aimeos TYPO3 distribution 19.4 (as of June 2020) via command line and composer

The aimeos/aimeos-typo3-dist v19.4 composer installation is buggy. Here is a work-around:

command line

composer create-project typo3/cms-base-distribution:~9.5 ./dev.aimeos.test
cd ./dev.aimeos.test

Then, add the following to the "composer.json" on the root level:

composer.json

{
  "scripts": {
    [...]
    "post-install-cmd": [
      "Aimeos\\Aimeos\\Custom\\Composer::install"
    ],
    "post-update-cmd": [
      "Aimeos\\Aimeos\\Custom\\Composer::install"
    ]
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

On the command line again: The first of the following 2 commands will throw errors, which the 2nd one fixes

Command line

composer require aimeos/aimeos-typo3-dist
composer require "aimeos/aimeos-typo3:2019.10.x-dev as 19.10.7"
php vendor/bin/typo3cms install:setup -vvv

If the page tree, that the aimeos dist is supposed to create, still does not show up, go to extension manager and uninstall/install the aimeos distribution extension.

Cudos to Simon Gilli and Norbert Sendeztky!

@gilbertsoft
Copy link

Use composer require aimeos/aimeos-typo3-dist --no-update instead so you don't get an error here. I also like to use create-project with --no-install for such setups to get everything installed at the end.

@gilbertsoft
Copy link

gilbertsoft commented Jun 11, 2020

My scripts looks like this, I always add the installer script to post-autload-dump

	"scripts":{
		"typo3-cms-scripts": [
			"typo3cms install:fixfolderstructure",
			"typo3cms install:generatepackagestates"
		],
		"post-autoload-dump": [
			"@typo3-cms-scripts",
			"Aimeos\\Aimeos\\Custom\\Composer::install"
		]
	},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment