mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-11-19 23:00:37 +01:00
up to sf 7
This commit is contained in:
parent
a39b6239b0
commit
501795a8fa
16586 changed files with 19384005 additions and 0 deletions
85
v1/old/app/config/config.yml
Executable file
85
v1/old/app/config/config.yml
Executable file
|
|
@ -0,0 +1,85 @@
|
|||
imports:
|
||||
- { resource: parameters.yml }
|
||||
- { resource: security.yml }
|
||||
- { resource: services.yml }
|
||||
|
||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
parameters:
|
||||
locale: fr
|
||||
|
||||
framework:
|
||||
#esi: ~
|
||||
translator: { fallbacks: ['%locale%'] }
|
||||
secret: '%secret%'
|
||||
router:
|
||||
resource: '%kernel.project_dir%/app/config/routing.yml'
|
||||
strict_requirements: ~
|
||||
form: ~
|
||||
csrf_protection: ~
|
||||
validation: { enable_annotations: true }
|
||||
#serializer: { enable_annotations: true }
|
||||
default_locale: '%locale%'
|
||||
trusted_hosts: ~
|
||||
session:
|
||||
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
|
||||
handler_id: session.handler.native_file
|
||||
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
|
||||
fragments: ~
|
||||
http_method_override: true
|
||||
assets: ~
|
||||
php_errors:
|
||||
log: true
|
||||
templating:
|
||||
engines: ['twig']
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: '%kernel.debug%'
|
||||
strict_variables: '%kernel.debug%'
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
server_version: '%server_version%'
|
||||
host: '%database_host%'
|
||||
port: '%database_port%'
|
||||
dbname: '%database_name%'
|
||||
user: '%database_user%'
|
||||
password: '%database_password%'
|
||||
charset: UTF8
|
||||
mapping_types:
|
||||
enum: string
|
||||
# if using pdo_sqlite as your database driver:
|
||||
# 1. add the path in parameters.yml
|
||||
# e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
|
||||
# 2. Uncomment database_path in parameters.yml.dist
|
||||
# 3. Uncomment next line:
|
||||
#path: '%database_path%'
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: '%kernel.debug%'
|
||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||
auto_mapping: true
|
||||
|
||||
# Swiftmailer Configuration
|
||||
swiftmailer:
|
||||
transport: '%mailer_transport%'
|
||||
host: '%mailer_host%'
|
||||
username: '%mailer_user%'
|
||||
password: '%mailer_password%'
|
||||
# spool: { type: memory }
|
||||
encryption: '%mailer_encryption%'
|
||||
port: '%mailer_port%'
|
||||
#fos user bundle
|
||||
fos_user:
|
||||
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
|
||||
firewall_name: main
|
||||
user_class: AppBundle\Entity\User
|
||||
registration:
|
||||
confirmation:
|
||||
enabled: true
|
||||
from_email:
|
||||
address: "%mailer_user%"
|
||||
sender_name: "%mailer_user%"
|
||||
41
v1/old/app/config/config_dev.yml
Executable file
41
v1/old/app/config/config_dev.yml
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
framework:
|
||||
router:
|
||||
resource: '%kernel.project_dir%/app/config/routing_dev.yml'
|
||||
strict_requirements: true
|
||||
profiler: { only_exceptions: false }
|
||||
|
||||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: '%kernel.logs_dir%/%kernel.environment%.log'
|
||||
level: debug
|
||||
channels: ['!event']
|
||||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ['!event', '!doctrine', '!console']
|
||||
# To follow logs in real time, execute the following command:
|
||||
# `bin/console server:log -vv`
|
||||
server_log:
|
||||
type: server_log
|
||||
process_psr_3_messages: false
|
||||
host: 127.0.0.1:9911
|
||||
# uncomment to get logging in your browser
|
||||
# you may have to allow bigger header sizes in your Web server configuration
|
||||
#firephp:
|
||||
# type: firephp
|
||||
# level: info
|
||||
#chromephp:
|
||||
# type: chromephp
|
||||
# level: info
|
||||
|
||||
#swiftmailer:
|
||||
# delivery_addresses: ['me@example.com']
|
||||
22
v1/old/app/config/config_prod.yml
Executable file
22
v1/old/app/config/config_prod.yml
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
#doctrine:
|
||||
# orm:
|
||||
# metadata_cache_driver: apc
|
||||
# result_cache_driver: apc
|
||||
# query_cache_driver: apc
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
handler: nested
|
||||
nested:
|
||||
type: stream
|
||||
path: '%kernel.logs_dir%/%kernel.environment%.log'
|
||||
level: debug
|
||||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
16
v1/old/app/config/config_test.yml
Executable file
16
v1/old/app/config/config_test.yml
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
imports:
|
||||
- { resource: config_dev.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
profiler:
|
||||
collect: false
|
||||
|
||||
web_profiler:
|
||||
toolbar: false
|
||||
intercept_redirects: false
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
33
v1/old/app/config/parameters.yml.dist
Executable file
33
v1/old/app/config/parameters.yml.dist
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
# This file is a "template" of what your parameters.yml file should look like
|
||||
# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: ~
|
||||
database_name: symfony
|
||||
database_user: root
|
||||
database_password: ~
|
||||
# You should uncomment this if you want to use pdo_sqlite
|
||||
#database_path: '%kernel.project_dir%/var/data/data.sqlite'
|
||||
|
||||
mailer_transport: smtp
|
||||
mailer_host: 127.0.0.1
|
||||
mailer_user: root
|
||||
mailer_password: ~
|
||||
mailer_encryption: tls
|
||||
mailer_port: 465
|
||||
|
||||
# A secret key that's used to generate certain security-related tokens
|
||||
secret: ThisTokenIsNotSoSecretChangeIt
|
||||
|
||||
#oauth configs
|
||||
google_id: change_this
|
||||
google_secret: change_this
|
||||
facebook_id: change_this
|
||||
facebook_secret: change_this
|
||||
twitter_id: change_this
|
||||
twitter_secret: change_this
|
||||
disqus_id: change_this
|
||||
disqus_secret: change_this
|
||||
|
||||
server_version: '5.6'
|
||||
27
v1/old/app/config/parameters.yml.save
Executable file
27
v1/old/app/config/parameters.yml.save
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: null
|
||||
database_name: test
|
||||
database_user: root
|
||||
database_password: plopplop01
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
mailer_transport: gmail
|
||||
mailer_host: smtp.gmail.com
|
||||
mail_port: 587
|
||||
mailer_user: tykayn
|
||||
mailer_password: janken444719
|
||||
secret: srgfregroijrzsijogjirezgijogrtg56rrge456reg456reg15re5g1er15
|
||||
google_id: change_this
|
||||
google_secret: change_this
|
||||
facebook_id: change_this
|
||||
facebook_secret: change_this
|
||||
twitter_id: X82TgOjVfrv3fOsaRZw5EAzwm
|
||||
twitter_secret: lGJwttTZXueAySV8tyoc3nWRtM9LPpNf5wlfvlzH2vu05dxnky
|
||||
disqus_id: change_this
|
||||
disqus_secret: change_this
|
||||
66
v1/old/app/config/routing.yml
Executable file
66
v1/old/app/config/routing.yml
Executable file
|
|
@ -0,0 +1,66 @@
|
|||
app_serie_festival:
|
||||
resource: "@AppBundle/Controller/SerieFestivalController.php"
|
||||
type: annotation
|
||||
|
||||
|
||||
fos_user_profile:
|
||||
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
|
||||
prefix: /profile
|
||||
|
||||
fos_user_register:
|
||||
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
|
||||
prefix: /register
|
||||
|
||||
fos_user_resetting:
|
||||
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
|
||||
prefix: /resetting
|
||||
|
||||
fos_user_change_password:
|
||||
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
|
||||
prefix: /profile
|
||||
app:
|
||||
resource: '@AppBundle/Controller/'
|
||||
type: annotation
|
||||
## app specific stuff
|
||||
app_festival:
|
||||
resource: "@AppBundle/Controller/FestivalController.php"
|
||||
type: annotation
|
||||
# legal info pages
|
||||
app_legal:
|
||||
resource: "@AppBundle/Controller/LegalController.php"
|
||||
type: annotation
|
||||
|
||||
app_product_category:
|
||||
resource: "@AppBundle/Controller/ProductCategoryController.php"
|
||||
type: annotation
|
||||
|
||||
app_product:
|
||||
resource: "@AppBundle/Controller/ProductController.php"
|
||||
type: annotation
|
||||
|
||||
app_sell_record:
|
||||
resource: "@AppBundle/Controller/SellRecordController.php"
|
||||
type: annotation
|
||||
|
||||
|
||||
# async calls
|
||||
get_my_products:
|
||||
path: /logged/get-my-products
|
||||
defaults: { _controller: AppBundle:Default:getMyProducts }
|
||||
get_my_expenses:
|
||||
path: /logged/get-my-expenses
|
||||
defaults: { _controller: AppBundle:Default:getMyExpenses }
|
||||
save_my_expenses:
|
||||
path: /logged/save-my-expenses
|
||||
defaults: { _controller: AppBundle:Default:saveMyExpenses }
|
||||
|
||||
add_selling:
|
||||
path: /logged/add-selling
|
||||
defaults: { _controller: AppBundle:Default:addSelling }
|
||||
|
||||
fos_user:
|
||||
resource: "@FOSUserBundle/Resources/config/routing/all.xml"
|
||||
# emails
|
||||
tktest_mail:
|
||||
path: /admin/test-email
|
||||
defaults: { _controller: AppBundle:Default:email }
|
||||
14
v1/old/app/config/routing_dev.yml
Executable file
14
v1/old/app/config/routing_dev.yml
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
_wdt:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
|
||||
prefix: /_wdt
|
||||
|
||||
_profiler:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
|
||||
prefix: /_profiler
|
||||
|
||||
_errors:
|
||||
resource: '@TwigBundle/Resources/config/routing/errors.xml'
|
||||
prefix: /_error
|
||||
|
||||
_main:
|
||||
resource: routing.yml
|
||||
42
v1/old/app/config/security.yml
Executable file
42
v1/old/app/config/security.yml
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
# To get started with security, check out the documentation:# To get started with security, check out the documentation:
|
||||
# https://symfony.com/doc/current/security.html
|
||||
security:
|
||||
encoders:
|
||||
FOS\UserBundle\Model\UserInterface: bcrypt
|
||||
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
|
||||
providers:
|
||||
fos_userbundle:
|
||||
id: fos_user.user_provider.username
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
# https://symfony.com/doc/current/security/form_login_setup.html
|
||||
# activate different ways to authenticate
|
||||
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
|
||||
http_basic: ~
|
||||
main:
|
||||
pattern: ^/
|
||||
anonymous: ~
|
||||
logout: true
|
||||
logout_on_user_change: true
|
||||
form_login:
|
||||
provider: fos_userbundle
|
||||
csrf_token_generator: security.csrf.token_manager
|
||||
default_target_path: dashboard
|
||||
login_path: fos_user_security_login
|
||||
check_path: /login_check
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: ROLE_USER
|
||||
ROLE_SUPER_ADMIN: ROLE_ADMIN
|
||||
|
||||
access_control:
|
||||
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||
- { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED }
|
||||
- { path: ^/history$, role: IS_AUTHENTICATED_REMEMBERED }
|
||||
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
|
||||
- { path: ^/logged, role: IS_AUTHENTICATED_REMEMBERED }
|
||||
- { path: ^/admin/, role: ROLE_ADMIN }
|
||||
|
||||
56
v1/old/app/config/services.yml
Executable file
56
v1/old/app/config/services.yml
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
# Learn more about services, parameters and containers at
|
||||
# https://symfony.com/doc/current/service_container.html
|
||||
parameters:
|
||||
#parameter_name: value
|
||||
|
||||
services:
|
||||
em:
|
||||
alias: doctrine.orm.entity_manager
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
# automatically injects dependencies in your services
|
||||
autowire: true
|
||||
# automatically registers your services as commands, event subscribers, etc.
|
||||
autoconfigure: true
|
||||
# this means you cannot fetch services directly from the container via $container->get()
|
||||
# if you need to do this, you can override this setting on individual services
|
||||
public: false
|
||||
|
||||
# makes classes in src/AppBundle available to be used as services
|
||||
# this creates a service per class whose id is the fully-qualified class name
|
||||
AppBundle\:
|
||||
resource: '../../src/AppBundle/*'
|
||||
# you can exclude directories or files
|
||||
# but if a service is unused, it's removed anyway
|
||||
exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
|
||||
|
||||
# controllers are imported separately to make sure they're public
|
||||
# and have a tag that allows actions to type-hint services
|
||||
AppBundle\Controller\:
|
||||
resource: '../../src/AppBundle/Controller'
|
||||
public: true
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
# add more services, or override services that need manual wiring
|
||||
# AppBundle\Service\ExampleService:
|
||||
# arguments:
|
||||
# $someArgument: 'some_value'
|
||||
# OAUTH
|
||||
my.oauth_aware.user_provider.service:
|
||||
class: HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider
|
||||
arguments:
|
||||
- '@fos_user.user_manager'
|
||||
- ['@fos_user.user_manager', twitter: twitter_id]
|
||||
- 'doctrine.orm.default_entity_manager'
|
||||
|
||||
my.custom.user_provider:
|
||||
class: AppBundle\Security\Core\User\MyFOSUBUserProvider
|
||||
arguments:
|
||||
- '@fos_user.user_manager'
|
||||
- ['@fos_user.user_manager', twitter: twitter_id]
|
||||
- '@doctrine.orm.default_entity_manager'
|
||||
tk.owner.service:
|
||||
autowire: false
|
||||
class: AppBundle\Service\OwnerService
|
||||
arguments:
|
||||
- '@doctrine.orm.default_entity_manager'
|
||||
Loading…
Add table
Add a link
Reference in a new issue