Skip to content

Commit aaadd1a

Browse files
committed
refactor: complete APP_FRAMEWORK to APP_WORKSPACE renaming across all configuration files
This comprehensive update ensures consistency by replacing all references to 'framework' with 'workspace' throughout the project configuration files. This terminology better reflects the versatile nature of the environment, which can support frameworks, libraries, applications, or any PHP project type. The change harmonizes the naming convention across the entire codebase.
1 parent 3e8ffd1 commit aaadd1a

File tree

6 files changed

+7
-31
lines changed

6 files changed

+7
-31
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ web/app/doc/
2020
web/app/report/
2121
.phpdoc/
2222

23-
# Framework directories
23+
# Workspace directories
2424
/web/symfony-app/
2525
/web/laravel-app/
2626

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ install-symfony:
268268
@$(DOCKER_EXEC) $(PHP_CONTAINER) bash -c "cd /var/www/html && composer create-project symfony/skeleton $(if $(SYMFONY_DIR),$(SYMFONY_DIR),symfony-app)"
269269
@echo "${GREEN}Symfony installed in ./web/$(if $(SYMFONY_DIR),$(SYMFONY_DIR),symfony-app)!${NC}"
270270
@echo "${YELLOW}To configure Nginx for Symfony, please update your .env file with:${NC}"
271-
@echo "${YELLOW}APP_FRAMEWORK=symfony${NC}"
271+
@echo "${YELLOW}APP_WORKSPACE=symfony${NC}"
272272
@echo "${YELLOW}APP_PUBLIC_DIR=$(if $(SYMFONY_DIR),$(SYMFONY_DIR),symfony-app)/public${NC}"
273273
@echo "${YELLOW}Then restart the containers with: make restart${NC}"
274274

@@ -277,6 +277,6 @@ install-laravel:
277277
@$(DOCKER_EXEC) $(PHP_CONTAINER) bash -c "cd /var/www/html && composer create-project laravel/laravel $(if $(LARAVEL_DIR),$(LARAVEL_DIR),laravel-app)"
278278
@echo "${GREEN}Laravel installed in ./web/$(if $(LARAVEL_DIR),$(LARAVEL_DIR),laravel-app)!${NC}"
279279
@echo "${YELLOW}To configure Nginx for Laravel, please update your .env file with:${NC}"
280-
@echo "${YELLOW}APP_FRAMEWORK=laravel${NC}"
280+
@echo "${YELLOW}APP_WORKSPACE=laravel${NC}"
281281
@echo "${YELLOW}APP_PUBLIC_DIR=$(if $(LARAVEL_DIR),$(LARAVEL_DIR),laravel-app)/public${NC}"
282282
@echo "${YELLOW}Then restart the containers with: make restart${NC}"

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Common configuration options:
117117
| PHP_DISPLAY_ERRORS | Show PHP errors | 1 | 0 |
118118
| PHP_MEMORY_LIMIT | PHP memory limit | 256M | 128M |
119119
| XDEBUG_ENABLED | Enable Xdebug | 1 | 0 |
120-
| APP_FRAMEWORK | Framework type | default | default |
120+
| APP_WORKSPACE | Workspace type | default | default |
121121
| APP_PUBLIC_DIR | Public directory | public | public |
122122
| SYMFONY_DIR | Symfony install directory | symfony-app | symfony-app |
123123
| LARAVEL_DIR | Laravel install directory | laravel-app | laravel-app |
@@ -399,7 +399,7 @@ make dev # or make prod
399399
make install-symfony
400400

401401
# Finally, modify your .env file to use Symfony
402-
# APP_FRAMEWORK=symfony
402+
# APP_WORKSPACE=symfony
403403
# APP_PUBLIC_DIR=symfony-app/public
404404

405405
# Restart the containers
@@ -414,7 +414,7 @@ make dev # or make prod
414414
make install-laravel
415415

416416
# Modify your .env file
417-
# APP_FRAMEWORK=laravel
417+
# APP_WORKSPACE=laravel
418418
# APP_PUBLIC_DIR=laravel-app/public
419419

420420
make restart
@@ -455,7 +455,7 @@ docker-compose exec php bash -c "cd /var/www/html && composer create-project you
455455
4. **Update your `.env` file** to use the new framework:
456456

457457
```
458-
APP_FRAMEWORK=yourframework
458+
APP_WORKSPACE=yourframework
459459
APP_PUBLIC_DIR=yourframework-app/public
460460
```
461461

etc/nginx/framework/default.conf

-14
This file was deleted.

etc/nginx/framework/laravel.conf

-5
This file was deleted.

etc/nginx/framework/symfony.conf

-5
This file was deleted.

0 commit comments

Comments
 (0)