Skip to content

Commit

Permalink
Merge pull request #27 from ThomasLdev/feat/21-drive-sdk
Browse files Browse the repository at this point in the history
issue 23 : try google sdk
  • Loading branch information
ThomasLdev authored Mar 31, 2024
2 parents 8692544 + 8d38029 commit ee5a6c3
Show file tree
Hide file tree
Showing 50 changed files with 2,581 additions and 308 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ LOCK_DSN=flock
GOOGLE_RECAPTCHA_SITE_KEY=6LdB5aIpAAAAAMHnR4Ym8xG3K3LAbZ_AMeMksHR0
GOOGLE_RECAPTCHA_SECRET=ToBeSetLocally
###< google/recaptcha ###

###> google/apiclient ###
GOOGLE_API_KEY=AIzaSyDunQ0NzhG0e4NAyZqkWDeoeG5Ah1Q94GA
GOOGLE_CLIENT_ID=828720291285-qf1k7dolnrvolvh905oah2io9ilpkbhc.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=ToBeSetLocally
###< google/apiclient ###
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
.phpunit.result.cache
###< phpunit/phpunit ###

###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ ifeq ($(INSIDE_DOCKER_CONTAINER), 1)
@echo "\033[32mRunning PHPStan - PHP Static Analysis Tool\033[39m"
@bin/console cache:clear --env=test
@./vendor/bin/phpstan --version
@./vendor/bin/phpstan analyze src tests
@./vendor/bin/phpstan analyze -c phpstan.neon
else
@make exec cmd="make phpstan"
endif
Expand All @@ -355,11 +355,18 @@ endif

pre-commit: ## Runs pre-commit checks
ifeq ($(INSIDE_DOCKER_CONTAINER), 1)
@echo "\033[32mRunning pre-commit checks\033[39m"
@echo "PHPUNIT"
@make phpunit
@echo "CSFIXER"
@make ecs-fix
@echo "PHPCBF"
@make phpcbf
@echo "PHPSTAN"
@make phpstan
@echo "PHPMD"
@make phpmd
@echo "ESLINT"
@make eslint
endif

Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-sodium": "*",
"doctrine/dbal": "^3",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^3.0",
"dragonmantank/cron-expression": "^3.3",
"google/apiclient": "^2.15.0",
"google/recaptcha": "^1.2",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.26",
Expand Down Expand Up @@ -95,7 +98,10 @@
"symfony": {
"allow-contrib": false,
"require": "6.4.*"
}
},
"google/apiclient-services": [
"Drive"
]
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.51",
Expand All @@ -113,6 +119,7 @@
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^7.0",
"symfony/stopwatch": "6.4.*",
"symfony/var-dumper": "6.4.*",
"symfony/web-profiler-bundle": "6.4.*",
"symplify/easy-coding-standard": "^12.1"
}
Expand Down
Loading

0 comments on commit ee5a6c3

Please sign in to comment.