Skip to content

Commit a69eaf7

Browse files
committed
PHP API Ref: Ease Symfony version maintenance
1 parent 89e09dd commit a69eaf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/php_api_ref/phpdoc.sh

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ DXP_EDITION='commerce'; # Edition from and for which the Reference is built
99
DXP_VERSION='5.0.x-dev'; # Version from and for which the Reference is built
1010
DXP_ADD_ONS=(connector-ai connector-openai automated-translation product-catalog-date-time-attribute); # Packages not included in $DXP_EDITION but added to the Reference, listed without their vendor "ibexa"
1111
DXP_EDITIONS=(oss headless experience commerce); # Available editions ordered by ascending capabilities
12+
SF_VERSION='6.4'; # Symfony version used by Ibexa DXP
1213
PHPDOC_VERSION='3.7.1'; # Version of phpDocumentor used to build the Reference
1314
PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dist.xml"; # Absolute path to phpDocumentor configuration file
1415
#PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dev.xml"; # Absolute path to phpDocumentor configuration file
@@ -154,6 +155,9 @@ mv ./.phpdoc/template/fonts ./php_api_reference/;
154155
mv ./.phpdoc/template/images ./php_api_reference/;
155156
mv ./.phpdoc/template/js/*.js ./php_api_reference/js/;
156157

158+
echo 'Set Symfony version…';
159+
sed "s/symfony_version = '.*'/symfony_version = '$SF_VERSION'/" $PHPDOC_DIR/template/base.html.twig > ./.phpdoc/template/base.html.twig;
160+
157161
echo 'Run phpDocumentor…';
158162
curl -LO "https://github.com/phpDocumentor/phpDocumentor/releases/download/v$PHPDOC_VERSION/phpDocumentor.phar";
159163
PHPDOC_BIN='phpDocumentor.phar';

0 commit comments

Comments
 (0)