Last active
September 8, 2019 20:17
-
-
Save kocsismate/d7f71f5da9e1cefbbdbee040b49c1984 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"php": "^7.4", | |
"woohoolabs/larva": "^0.7.0", | |
"woohoolabs/worm": "^0.7.0" | |
}, | |
"config": { | |
"platform": { | |
"php": "7.4" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php: | |
image: php:7.4.0RC1-fpm-alpine3.10 | |
volumes: | |
- .:/code | |
working_dir: "/code" | |
command: /bin/sh -c "docker-php-ext-install opcache && cp ./php.ini /usr/local/etc/php/conf.d/zz-custom-php.ini && php -v" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PHP] | |
display_startup_errors=1 | |
error_reporting=E_ALL | |
[OPCACHE] | |
zend-extension=opcache | |
opcache.enable=1 | |
opcache.enable_cli=1 | |
opcache.preload=/code/preload.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
opcache_compile_file('vendor/woohoolabs/worm/src/Worm.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Connection/ConnectionInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Driver/DriverInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Select/SelectQueryInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Condition/ConditionsInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Condition/ConditionBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Select/SelectQueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/QueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Driver/TranslatedQuerySegment.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Insert/InsertQueryInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Update/UpdateQueryInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Delete/DeleteQueryInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Truncate/TruncateQueryInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Execution/IdentityMap.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/ModelInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/RelationshipInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Execution/Persister.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Execution/QueryExecutor.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Insert/InsertQueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/DmlCommandBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Update/UpdateQueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Delete/DeleteQueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Truncate/TruncateQueryBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/SelectQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Select/SelectQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/ConditionBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Condition/ConditionBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/InsertQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Insert/InsertQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/UpdateQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Update/UpdateQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/DeleteQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Delete/DeleteQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Query/TruncateQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/larva/src/Query/Truncate/TruncateQueryBuilder.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/AbstractModel.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/RelationshipBuilderInterface.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/HasManyRelationship.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/HasOneRelationship.php'); | |
// Preloading works if I delete the last 4 lines from the preload file (although there are some warnings | |
// because HasManyRelationhip and HasOneRelationship are unlinked) | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/AbstractRelationship.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/BelongsToOneRelationship.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/HasManyThroughRelationship.php'); | |
opcache_compile_file('vendor/woohoolabs/worm/src/Model/Relationship/BelongsToManyRelationship.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment