- Created Document entity with properties for file management, including filename, originalFilename, mimeType, size, uploadedAt, uploadedBy, relatedEntity, relatedEntityId, and description. - Implemented DocumentRepository for querying documents by related entity and user. - Added GitRepository entity with properties for managing Git repositories, including URL, localPath, branch, provider, accessToken, project, lastSync, name, description, createdAt, and updatedAt. - Implemented GitRepositoryRepository for querying repositories by project. - Developed GitHubService for interacting with GitHub API, including methods for fetching commits, contributions, branches, and repository info. - Developed GitService for local Git repository interactions, including methods for fetching commits, contributions, branches, and repository info. - Developed GiteaService for interacting with Gitea API, including methods for fetching commits, contributions, branches, repository info, and testing connection.
53 lines
1.9 KiB
YAML
53 lines
1.9 KiB
YAML
# This file is the entry point to configure your own services.
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
|
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
|
parameters:
|
|
app.url: '%env(APP_URL)%'
|
|
|
|
services:
|
|
# default configuration for services in *this* file
|
|
_defaults:
|
|
autowire: true # Automatically injects dependencies in your services.
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
|
|
# makes classes in src/ available to be used as services
|
|
# this creates a service per class whose id is the fully-qualified class name
|
|
App\:
|
|
resource: '../src/'
|
|
exclude:
|
|
- '../src/DependencyInjection/'
|
|
- '../src/Entity/'
|
|
- '../src/Kernel.php'
|
|
|
|
# add more service definitions when explicit configuration is needed
|
|
# please note that last definitions always *replace* previous ones
|
|
|
|
# API Platform State Processor for User Password Hashing
|
|
App\State\UserPasswordHasher:
|
|
decorates: 'api_platform.doctrine.orm.state.persist_processor'
|
|
arguments:
|
|
$processor: '@.inner'
|
|
|
|
# Password Setup Service with APP_URL parameter
|
|
App\Service\PasswordSetupService:
|
|
arguments:
|
|
$appUrl: '%app.url%'
|
|
$projectDir: '%kernel.project_dir%'
|
|
|
|
# Mailer Logger with project directory
|
|
App\EventListener\MailerLoggerListener:
|
|
arguments:
|
|
$projectDir: '%kernel.project_dir%'
|
|
|
|
# GitHub Service with optional token
|
|
App\Service\GitHubService:
|
|
arguments:
|
|
$githubToken: '%env(string:default::GITHUB_TOKEN)%'
|
|
|
|
# Gitea Service with optional token
|
|
App\Service\GiteaService:
|
|
arguments:
|
|
$giteaToken: '%env(string:default::GITEA_TOKEN)%'
|