I’m following Git workflow for Yii 2 contributors and have what appears to be a proper distribution locally. Wanted to test that it’s working before I start loading the Extension that I want to work on.
My perplexing problem is figuring out where in the git tree should I be pointing apache?
Installing yiisoft/yii2-composer (2.0.8): Loading from cache
Installing sebastian/version (1.0.6): Loading from cache
Installing sebastian/global-state (1.1.1): Loading from cache
Installing sebastian/recursion-context (1.0.5): Loading from cache
Installing sebastian/exporter (1.2.2): Loading from cache
Installing sebastian/environment (1.3.8): Loading from cache
Installing sebastian/diff (1.4.3): Loading from cache
Installing sebastian/comparator (1.2.4): Loading from cache
Installing symfony/polyfill-ctype (v1.12.0): Loading from cache
Installing symfony/yaml (v2.8.50): Loading from cache
Installing doctrine/instantiator (1.0.5): Loading from cache
Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
Installing phpspec/prophecy (1.8.1): Loading from cache
Installing phpunit/php-text-template (1.2.1): Loading from cache
Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
Installing phpunit/php-timer (1.0.9): Loading from cache
Installing phpunit/php-token-stream (1.4.12): Loading from cache
Installing phpunit/php-file-iterator (1.4.5): Loading from cache
Installing phpunit/php-code-coverage (2.2.4): Loading from cache
Installing phpunit/phpunit (4.8.34): Loading from cache
Installing cebe/indent (1.0.2): Loading from cache
Installing ezyang/htmlpurifier (v4.11.0): Loading from cache
Installing cebe/markdown (1.2.1): Loading from cache
Installing bower-asset/jquery (3.4.1): Loading from cache
Installing bower-asset/inputmask (3.3.11): Loading from cache
Installing bower-asset/punycode (v1.3.2): Loading from cache
Installing bower-asset/yii2-pjax (2.0.7.1): Loading from cache
Installing symfony/stopwatch (v2.8.50): Loading from cache
Installing symfony/process (v2.8.50): Loading from cache
Installing symfony/polyfill-php72 (v1.12.0): Loading from cache
Installing paragonie/random_compat (v2.0.18): Loading from cache
Installing symfony/polyfill-php70 (v1.12.0): Loading from cache
Installing ircmaxell/password-compat (v1.0.4): Loading from cache
Installing symfony/polyfill-php55 (v1.12.0): Loading from cache
Installing symfony/polyfill-php54 (v1.12.0): Loading from cache
Installing symfony/options-resolver (v2.8.50): Loading from cache
Installing symfony/finder (v2.8.50): Loading from cache
Installing symfony/filesystem (v2.8.50): Loading from cache
Installing symfony/event-dispatcher (v2.8.50): Loading from cache
Installing symfony/polyfill-mbstring (v1.12.0): Loading from cache
Installing psr/log (1.1.0): Loading from cache
Installing symfony/debug (v2.8.50): Loading from cache
Installing symfony/console (v2.8.50): Loading from cache
Installing doctrine/lexer (1.0.2): Loading from cache
Installing doctrine/annotations (v1.2.7): Loading from cache
Installing composer/xdebug-handler (1.3.3): Loading from cache
Installing composer/semver (1.5.0): Loading from cache
Installing friendsofphp/php-cs-fixer (v2.2.20): Loading from cache
Installing johnkary/phpunit-speedtrap (v1.0.1): Loading from cache
sebastian/global-state suggests installing ext-uopz (*)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/event-dispatcher suggests installing symfony/http-kernel
symfony/console suggests installing psr/log-implementation (For using the console logger)
friendsofphp/php-cs-fixer suggests installing php-cs-fixer/phpunit-constraint-isidenticalstring (For IsIdenticalString constraint.)
friendsofphp/php-cs-fixer suggests installing php-cs-fixer/phpunit-constraint-xmlmatchesxsd (For XmlMatchesXsd constraint.)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
done.
linking framework and extensions to ‘basic’ app vendor dir…
done.
Yes! I now have a app/basic/web with the expected files in it. It makes sense in a perverted way. It would appear that the instructions need to be updated slightly.
Run php build/build dev/app basic <fork> to clone the basic app and install composer dependencies for the basic app. <fork> is URL of your repository fork such as git@github.com:my_nickname/yii2-app-basic.git . If you are core framework contributor you may skip specifying fork. This command will install foreign composer packages as normal but will link the yii2 repo to the currently checked out repo, so you have one instance of all the code installed.
run php build/build dev/app basic <fork> to clone the basic app and install composer dependencies for the basic app. <fork> is URL of your repository fork such as git@github.com:my_nickname/yii2-app-basic.git . If you are core framework contributor you may skip specifying fork. This command will install foreign composer packages as normal but will link the yii2 repo to the currently checked out repo, so you have one instance of all the code installed.Do the same for the advanced app if needed: php build/build dev/app advanced <fork> .This command will also be used to update dependencies, it runs composer update internally.