first commit
This commit is contained in:
590
app/config/addons/categories.yml
Normal file
590
app/config/addons/categories.yml
Normal file
@@ -0,0 +1,590 @@
|
||||
---
|
||||
prestashop:
|
||||
addons:
|
||||
categories:
|
||||
'440':
|
||||
id_category: 440
|
||||
order: 10
|
||||
name: Administration
|
||||
link: "/en/440-administration"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '435'
|
||||
name: Legal
|
||||
id_parent: '440'
|
||||
link_rewrite: legal
|
||||
link: "/en/435-legal"
|
||||
tab: administration
|
||||
- id_category: '527'
|
||||
name: Registration & Ordering Process
|
||||
id_parent: '440'
|
||||
link_rewrite: registration-ordering-process
|
||||
link: "/en/527-registration-ordering-process"
|
||||
tab: checkout
|
||||
- id_category: '437'
|
||||
name: Notifications & Automatic Emails
|
||||
id_parent: '440'
|
||||
link_rewrite: emails-notifications
|
||||
link: "/en/437-emails-notifications"
|
||||
tab: emailing
|
||||
- id_category: '448'
|
||||
name: Price Management
|
||||
id_parent: '440'
|
||||
link_rewrite: price-management
|
||||
link: "/en/448-price-management"
|
||||
tab: administration
|
||||
- id_category: '441'
|
||||
name: Order Management
|
||||
id_parent: '440'
|
||||
link_rewrite: order-management
|
||||
link: "/en/441-order-management"
|
||||
tab: administration
|
||||
- id_category: '446'
|
||||
name: Accounting & Invoicing
|
||||
id_parent: '440'
|
||||
link_rewrite: accounting-invoicing
|
||||
link: "/en/446-accounting-invoicing"
|
||||
tab: billing_invoicing
|
||||
- id_category: '433'
|
||||
name: Fast & Mass Update
|
||||
id_parent: '440'
|
||||
link_rewrite: fast-mass-updates
|
||||
link: "/en/433-fast-mass-updates"
|
||||
tab: quick_bulk_update
|
||||
- id_category: '451'
|
||||
name: Data Import & Export
|
||||
id_parent: '440'
|
||||
link_rewrite: data-import-export
|
||||
link: "/en/451-data-import-export"
|
||||
tab: export
|
||||
- id_category: '452'
|
||||
name: Third-party Data Integration (CRM, ERP...)
|
||||
id_parent: '440'
|
||||
link_rewrite: third-party-data-integrations-crm-erp
|
||||
link: "/en/452-third-party-data-integrations-crm-erp"
|
||||
tab: export
|
||||
- id_category: '453'
|
||||
name: Analytics & Statistics
|
||||
id_parent: '440'
|
||||
link_rewrite: analytics-statistics
|
||||
link: "/en/453-analytics-statistics"
|
||||
tab: analytics_stats
|
||||
- id_category: '209'
|
||||
name: Dashboards
|
||||
id_parent: '440'
|
||||
link_rewrite: dashboards
|
||||
link: "/en/209-dashboards"
|
||||
tab: administration
|
||||
- id_category: '432'
|
||||
name: Website Performance
|
||||
id_parent: '440'
|
||||
link_rewrite: website-performance
|
||||
link: "/en/432-website-performance"
|
||||
tab: administration
|
||||
- id_category: '436'
|
||||
name: International & Localization
|
||||
id_parent: '440'
|
||||
link_rewrite: international-localization
|
||||
link: "/en/436-international-localization"
|
||||
tab: i18n_localization
|
||||
- id_category: '431'
|
||||
name: Data migration & Backup
|
||||
id_parent: '440'
|
||||
link_rewrite: data-migration-backup
|
||||
link: "/en/431-data-migration-backup"
|
||||
tab: migration_tools
|
||||
- id_category: '543'
|
||||
name: Administrative Tools
|
||||
id_parent: '440'
|
||||
link_rewrite: administrative-tools
|
||||
link: "/en/543-administrative-tools"
|
||||
tab: administration
|
||||
- id_category: '429'
|
||||
name: Security & Access
|
||||
id_parent: '440'
|
||||
link_rewrite: website-security-access
|
||||
link: "/en/429-website-security-access"
|
||||
tab: administration
|
||||
tab: administration
|
||||
'455':
|
||||
id_category: 455
|
||||
order: 90
|
||||
name: Facebook & Social Networks
|
||||
link: "/en/455-facebook-social-networks"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '456'
|
||||
name: Share Buttons & Comments
|
||||
id_parent: '455'
|
||||
link_rewrite: share-buttons-comments
|
||||
link: "/en/456-share-buttons-comments"
|
||||
tab: social_networks
|
||||
- id_category: '457'
|
||||
name: Social Login & Connect
|
||||
id_parent: '455'
|
||||
link_rewrite: social-login-connect
|
||||
link: "/en/457-social-login-connect"
|
||||
tab: social_networks
|
||||
- id_category: '458'
|
||||
name: Social Rewards & Coupons
|
||||
id_parent: '455'
|
||||
link_rewrite: social-rewards-coupons
|
||||
link: "/en/458-social-rewards-coupons"
|
||||
tab: social_networks
|
||||
- id_category: '459'
|
||||
name: Products on Facebook & Social Networks
|
||||
id_parent: '455'
|
||||
link_rewrite: products-on-facebook-social-networks
|
||||
link: "/en/459-products-on-facebook-social-networks"
|
||||
tab: social_networks
|
||||
- id_category: '539'
|
||||
name: Social Widgets
|
||||
id_parent: '455'
|
||||
link_rewrite: social-widgets
|
||||
link: "/en/539-social-widgets"
|
||||
tab: social_networks
|
||||
tab: advertising_marketing
|
||||
'460':
|
||||
id_category: 460
|
||||
order: 40
|
||||
name: Product Page
|
||||
link: "/en/460-product-page"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '462'
|
||||
name: Visual Products
|
||||
id_parent: '460'
|
||||
link_rewrite: visual-products
|
||||
link: "/en/462-visual-products"
|
||||
tab: front_office_features
|
||||
- id_category: '463'
|
||||
name: Videos & Music
|
||||
id_parent: '460'
|
||||
link_rewrite: videos-music
|
||||
link: "/en/463-videos-music"
|
||||
tab: front_office_features
|
||||
- id_category: '467'
|
||||
name: Combinations & Product Customization
|
||||
id_parent: '460'
|
||||
link_rewrite: combinaisons-customization
|
||||
link: "/en/467-combinaisons-customization"
|
||||
tab: front_office_features
|
||||
- id_category: '465'
|
||||
name: Badges & Logos
|
||||
id_parent: '460'
|
||||
link_rewrite: labels-logos
|
||||
link: "/en/465-labels-logos"
|
||||
tab: front_office_features
|
||||
- id_category: '466'
|
||||
name: Sizes & Units
|
||||
id_parent: '460'
|
||||
link_rewrite: sizes-units
|
||||
link: "/en/466-sizes-units"
|
||||
tab: front_office_features
|
||||
- id_category: '545'
|
||||
name: Additional Information & Product Tab
|
||||
id_parent: '460'
|
||||
link_rewrite: additional-information-product-tab
|
||||
link: "/en/545-additional-information-product-tab"
|
||||
tab: front_office_features
|
||||
tab: administration
|
||||
'469':
|
||||
id_category: 469
|
||||
order: 100
|
||||
name: Specialized Platforms
|
||||
link: "/en/469-specialized-platforms"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '434'
|
||||
name: B2B
|
||||
id_parent: '469'
|
||||
link_rewrite: b2b
|
||||
link: "/en/434-b2b"
|
||||
tab: administration
|
||||
- id_category: '443'
|
||||
name: Dropshipping
|
||||
id_parent: '469'
|
||||
link_rewrite: dropshipping
|
||||
link: "/en/443-dropshipping"
|
||||
tab: shipping_logistics
|
||||
- id_category: '474'
|
||||
name: Virtual Products
|
||||
id_parent: '469'
|
||||
link_rewrite: virtual-products
|
||||
link: "/en/474-virtual-products"
|
||||
tab: administration
|
||||
- id_category: '529'
|
||||
name: Subscription Products (box)
|
||||
id_parent: '469'
|
||||
link_rewrite: subscription-products
|
||||
link: "/en/529-subscription-products"
|
||||
tab: pricing_promotion
|
||||
- id_category: '472'
|
||||
name: Marketplace Creation
|
||||
id_parent: '469'
|
||||
link_rewrite: marketplace-creation
|
||||
link: "/en/472-marketplace-creation"
|
||||
tab: administration
|
||||
- id_category: '473'
|
||||
name: Reservation & Rental System
|
||||
id_parent: '469'
|
||||
link_rewrite: reservation-rental-system
|
||||
link: "/en/473-reservation-rental-system"
|
||||
tab: administration
|
||||
- id_category: '470'
|
||||
name: Auction Site
|
||||
id_parent: '469'
|
||||
link_rewrite: build-auction-site
|
||||
link: "/en/470-build-auction-site"
|
||||
tab: pricing_promotion
|
||||
- id_category: '623'
|
||||
name: Food & Restaurants
|
||||
id_parent: '469'
|
||||
link_rewrite: food-restaurants
|
||||
link: "/en/623-food-restaurants"
|
||||
tab: others
|
||||
'475':
|
||||
id_category: 475
|
||||
order: 80
|
||||
name: Customers
|
||||
link: "/en/475-customers"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '480'
|
||||
name: Customer Reviews
|
||||
id_parent: '475'
|
||||
link_rewrite: customer-reviews
|
||||
link: "/en/480-customer-reviews"
|
||||
tab: front_office_features
|
||||
- id_category: '537'
|
||||
name: Customer Administration
|
||||
id_parent: '475'
|
||||
link_rewrite: customer-administration
|
||||
link: "/en/537-customer-administration"
|
||||
tab: administration
|
||||
- id_category: '438'
|
||||
name: Quotes
|
||||
id_parent: '475'
|
||||
link_rewrite: quotes
|
||||
link: "/en/438-quotes"
|
||||
tab: front_office_features
|
||||
- id_category: '442'
|
||||
name: Customer Service
|
||||
id_parent: '475'
|
||||
link_rewrite: customer-service
|
||||
link: "/en/442-customer-service"
|
||||
tab: administration
|
||||
- id_category: '476'
|
||||
name: Contact Forms & Surveys
|
||||
id_parent: '475'
|
||||
link_rewrite: contact-forms-surveys
|
||||
link: "/en/476-contact-forms-surveys"
|
||||
tab: front_office_features
|
||||
- id_category: '479'
|
||||
name: FAQ (Frequently Asked Questions)
|
||||
id_parent: '475'
|
||||
link_rewrite: faq-frequently-asked-questions
|
||||
link: "/en/479-faq-frequently-asked-questions"
|
||||
tab: front_office_features
|
||||
- id_category: '477'
|
||||
name: Support & Online Chat
|
||||
id_parent: '475'
|
||||
link_rewrite: support-online-chat
|
||||
link: "/en/477-support-online-chat"
|
||||
tab: front_office_features
|
||||
tab: administration
|
||||
'481':
|
||||
id_category: 481
|
||||
order: 50
|
||||
name: Payment
|
||||
link: "/en/481-payment"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '482'
|
||||
name: Payment by Card or Wallet
|
||||
id_parent: '481'
|
||||
link_rewrite: payment-card-wallet
|
||||
link: "/en/482-payment-card-wallet"
|
||||
tab: payments_gateways
|
||||
- id_category: '534'
|
||||
name: Bank Transfer Payment
|
||||
id_parent: '481'
|
||||
link_rewrite: bank-transfer-payment
|
||||
link: "/en/534-bank-transfer-payment"
|
||||
tab: payments_gateways
|
||||
- id_category: '483'
|
||||
name: Payment by Invoice
|
||||
id_parent: '481'
|
||||
link_rewrite: payment-invoice
|
||||
link: "/en/483-payment-invoice"
|
||||
tab: payments_gateways
|
||||
- id_category: '486'
|
||||
name: Prepayment
|
||||
id_parent: '481'
|
||||
link_rewrite: prepayment
|
||||
link: "/en/486-prepayment"
|
||||
tab: payments_gateways
|
||||
- id_category: '485'
|
||||
name: Cash On Delivery (COD)
|
||||
id_parent: '481'
|
||||
link_rewrite: cash-on-delivery-cod
|
||||
link: "/en/485-cash-on-delivery-cod"
|
||||
tab: payments_gateways
|
||||
- id_category: '484'
|
||||
name: Payment in Physical Stores
|
||||
id_parent: '481'
|
||||
link_rewrite: payment-physical-stores
|
||||
link: "/en/484-payment-physical-stores"
|
||||
tab: payments_gateways
|
||||
- id_category: '487'
|
||||
name: Point of Sale (POS)
|
||||
id_parent: '481'
|
||||
link_rewrite: point-of-sale-pos
|
||||
link: "/en/487-point-of-sale-pos"
|
||||
tab: payments_gateways
|
||||
- id_category: '530'
|
||||
name: Other Payment Methods
|
||||
id_parent: '481'
|
||||
link_rewrite: other-payment-methods
|
||||
link: "/en/530-other-payment-methods"
|
||||
tab: payments_gateways
|
||||
- id_category: '627'
|
||||
name: Recurring payment (subscription)
|
||||
id_parent: '481'
|
||||
link_rewrite: recurring-payment-subscription
|
||||
link: "/en/627-recurring-payment-subscription"
|
||||
tab: payments_gateways
|
||||
'488':
|
||||
id_category: 488
|
||||
order: 70
|
||||
name: Traffic & Marketplaces
|
||||
link: "/en/488-traffic-marketplaces"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '489'
|
||||
name: Marketplaces
|
||||
id_parent: '488'
|
||||
link_rewrite: marketplaces
|
||||
link: "/en/489-marketplaces"
|
||||
tab: market_place
|
||||
- id_category: '490'
|
||||
name: Price Comparison
|
||||
id_parent: '488'
|
||||
link_rewrite: price-comparison
|
||||
link: "/en/490-price-comparison"
|
||||
tab: smart_shopping
|
||||
- id_category: '491'
|
||||
name: SEO
|
||||
id_parent: '488'
|
||||
link_rewrite: seo-natural-search-engine-optimization
|
||||
link: "/en/491-seo-natural-search-engine-optimization"
|
||||
tab: seo
|
||||
- id_category: '531'
|
||||
name: URL & Redirects
|
||||
id_parent: '488'
|
||||
link_rewrite: url-redirects
|
||||
link: "/en/531-url-redirects"
|
||||
tab: seo
|
||||
- id_category: '495'
|
||||
name: Blog, Forum & News
|
||||
id_parent: '488'
|
||||
link_rewrite: blog-forum-new
|
||||
link: "/en/495-blog-forum-new"
|
||||
tab: content_management
|
||||
- id_category: '493'
|
||||
name: SEA SEM (paid advertising) & Affiliation Platforms
|
||||
id_parent: '488'
|
||||
link_rewrite: sea-paid-advertising-affiliation-platforms
|
||||
link: "/en/493-sea-paid-advertising-affiliation-platforms"
|
||||
tab: advertising_marketing
|
||||
tab: checkout
|
||||
'496':
|
||||
id_category: 496
|
||||
order: 30
|
||||
name: Promotions & Marketing
|
||||
link: "/en/496-promotions-marketing"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '500'
|
||||
name: Newsletter & SMS
|
||||
id_parent: '496'
|
||||
link_rewrite: newsletter-sms
|
||||
link: "/en/500-newsletter-sms"
|
||||
tab: emailing
|
||||
- id_category: '497'
|
||||
name: Promotions & Gifts
|
||||
id_parent: '496'
|
||||
link_rewrite: promotions-gifts
|
||||
link: "/en/497-promotions-gifts"
|
||||
tab: pricing_promotion
|
||||
- id_category: '503'
|
||||
name: Referral & Loyalty Programs
|
||||
id_parent: '496'
|
||||
link_rewrite: referral-loyalty-programs
|
||||
link: "/en/503-referral-loyalty-programs"
|
||||
tab: advertising_marketing
|
||||
- id_category: '499'
|
||||
name: Flash & Private Sales
|
||||
id_parent: '496'
|
||||
link_rewrite: private-sales-flash-sales
|
||||
link: "/en/499-private-sales-flash-sales"
|
||||
tab: pricing_promotion
|
||||
- id_category: '501'
|
||||
name: Remarketing & Shopping Cart Abandonment
|
||||
id_parent: '496'
|
||||
link_rewrite: remarketing-shopping-cart-abandonment
|
||||
link: "/en/501-remarketing-shopping-cart-abandonment"
|
||||
tab: advertising_marketing
|
||||
- id_category: '505'
|
||||
name: Cross-selling & Product Bundles
|
||||
id_parent: '496'
|
||||
link_rewrite: cross-selling-product-bundles
|
||||
link: "/en/505-cross-selling-product-bundles"
|
||||
tab: merchandizing
|
||||
- id_category: '502'
|
||||
name: Pop-up
|
||||
id_parent: '496'
|
||||
link_rewrite: pop-up
|
||||
link: "/en/502-pop-up"
|
||||
tab: front_office_features
|
||||
- id_category: '533'
|
||||
name: Contests
|
||||
id_parent: '496'
|
||||
link_rewrite: contests
|
||||
link: "/en/533-contests"
|
||||
tab: advertising_marketing
|
||||
- id_category: '504'
|
||||
name: 'Wishlist & Gift Card '
|
||||
id_parent: '496'
|
||||
link_rewrite: wishlist-gift-card
|
||||
link: "/en/504-wishlist-gift-card"
|
||||
tab: front_office_features
|
||||
tab: pricing_promotion
|
||||
'507':
|
||||
id_category: 507
|
||||
order: 20
|
||||
name: Design & Navigation
|
||||
link: "/en/507-design-navigation"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '513'
|
||||
name: Menu
|
||||
id_parent: '507'
|
||||
link_rewrite: menu
|
||||
link: "/en/513-menu"
|
||||
tab: front_office_features
|
||||
- id_category: '517'
|
||||
name: Blocks, Tabs & Banners
|
||||
id_parent: '507'
|
||||
link_rewrite: blocks-tabs-banners
|
||||
link: "/en/517-blocks-tabs-banners"
|
||||
tab: front_office_features
|
||||
- id_category: '461'
|
||||
name: Sliders & Galleries
|
||||
id_parent: '507'
|
||||
link_rewrite: sliders-galleries
|
||||
link: "/en/461-sliders-galleries"
|
||||
tab: slideshows
|
||||
- id_category: '510'
|
||||
name: Search & Filters
|
||||
id_parent: '507'
|
||||
link_rewrite: search-filters
|
||||
link: "/en/510-search-filters"
|
||||
tab: search_filter
|
||||
- id_category: '516'
|
||||
name: Page Customization
|
||||
id_parent: '507'
|
||||
link_rewrite: page-customization
|
||||
link: "/en/516-page-customization"
|
||||
tab: front_office_features
|
||||
- id_category: '511'
|
||||
name: Navigation Tools
|
||||
id_parent: '507'
|
||||
link_rewrite: navigation-tools
|
||||
link: "/en/511-navigation-tools"
|
||||
tab: front_office_features
|
||||
- id_category: '538'
|
||||
name: Products on Homepage
|
||||
id_parent: '507'
|
||||
link_rewrite: products-homepage
|
||||
link: "/en/538-products-homepage"
|
||||
tab: front_office_features
|
||||
- id_category: '512'
|
||||
name: Brands & Manufacturers
|
||||
id_parent: '507'
|
||||
link_rewrite: brands-manufacturers
|
||||
link: "/en/512-brands-manufacturers"
|
||||
tab: front_office_features
|
||||
- id_category: '509'
|
||||
name: Express Checkout Process
|
||||
id_parent: '507'
|
||||
link_rewrite: express-checkout-process
|
||||
link: "/en/509-express-checkout-process"
|
||||
tab: checkout
|
||||
- id_category: '508'
|
||||
name: Mobile
|
||||
id_parent: '507'
|
||||
link_rewrite: mobile
|
||||
link: "/en/508-mobile"
|
||||
tab: mobile
|
||||
tab: front_office_features
|
||||
'518':
|
||||
id_category: 518
|
||||
order: 60
|
||||
name: Shipping & Logistics
|
||||
link: "/en/518-shipping-logistics"
|
||||
parent_link: "/en/2-prestashop-modules"
|
||||
id_parent: 2
|
||||
categories:
|
||||
- id_category: '444'
|
||||
name: Stock & Supplier Management
|
||||
id_parent: '518'
|
||||
link_rewrite: stock-supplier-management
|
||||
link: "/en/444-stock-supplier-management"
|
||||
tab: administration
|
||||
- id_category: '519'
|
||||
name: Preparation & Shipping
|
||||
id_parent: '518'
|
||||
link_rewrite: preparation-shipping
|
||||
link: "/en/519-preparation-shipping"
|
||||
tab: shipping_logistics
|
||||
- id_category: '520'
|
||||
name: Shipping Carriers
|
||||
id_parent: '518'
|
||||
link_rewrite: shipping-carriers
|
||||
link: "/en/520-shipping-carriers"
|
||||
tab: shipping_logistics
|
||||
- id_category: '523'
|
||||
name: Shipping Costs
|
||||
id_parent: '518'
|
||||
link_rewrite: shipping-costs
|
||||
link: "/en/523-shipping-costs"
|
||||
tab: shipping_logistics
|
||||
- id_category: '521'
|
||||
name: Collection Points & In-Store Pick Up
|
||||
id_parent: '518'
|
||||
link_rewrite: collection-points-in-store-pick-up
|
||||
link: "/en/521-collection-points-in-store-pick-up"
|
||||
tab: shipping_logistics
|
||||
- id_category: '522'
|
||||
name: Delivery Date
|
||||
id_parent: '518'
|
||||
link_rewrite: delivery-date
|
||||
link: "/en/522-delivery-date"
|
||||
tab: shipping_logistics
|
||||
- id_category: '524'
|
||||
name: Delivery Tracking
|
||||
id_parent: '518'
|
||||
link_rewrite: delivery-tracking
|
||||
link: "/en/524-delivery-tracking"
|
||||
tab: shipping_logistics
|
||||
tab: shipping_logistics
|
||||
112
app/config/config.yml
Normal file
112
app/config/config.yml
Normal file
@@ -0,0 +1,112 @@
|
||||
imports:
|
||||
- { resource: set_parameters.php }
|
||||
- { resource: security.yml }
|
||||
- { resource: services.yml }
|
||||
- { resource: addons/*.yml }
|
||||
- { resource: doctrine.yml }
|
||||
|
||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
parameters:
|
||||
env(PS_THEME_NAME): "classic"
|
||||
AdapterSecurityAdminClass: PrestaShop\PrestaShop\Adapter\Security\Admin
|
||||
translator.class: PrestaShopBundle\Translation\Translator
|
||||
translator.data_collector: PrestaShopBundle\Translation\DataCollectorTranslator
|
||||
admin_page: "%kernel.root_dir%/../src/PrestaShopBundle/Resources/views/Admin"
|
||||
env(PS_LOG_OUTPUT): "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
mail_themes_uri: "/mails/themes"
|
||||
mail_themes_dir: "%kernel.project_dir%%mail_themes_uri%"
|
||||
|
||||
# Autowires Core controllers
|
||||
services:
|
||||
PrestaShopBundle\Controller\:
|
||||
resource: "%kernel.root_dir%/../src/PrestaShopBundle/Controller/*"
|
||||
exclude: "%kernel.root_dir%/../src/PrestaShopBundle/Controller/Api"
|
||||
tags:
|
||||
- 'controller.service_arguments'
|
||||
- !php/const PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController::PRESTASHOP_CORE_CONTROLLERS_TAG
|
||||
|
||||
framework:
|
||||
assets:
|
||||
version: !php/const \AppKernel::VERSION
|
||||
|
||||
#esi: ~
|
||||
secret: "%secret%"
|
||||
translator: { fallbacks: ["default"] }
|
||||
router:
|
||||
resource: "%kernel.root_dir%/config/routing.yml"
|
||||
strict_requirements: ~
|
||||
form: ~
|
||||
csrf_protection: ~
|
||||
validation: { enable_annotations: true }
|
||||
serializer: { enable_annotations: true }
|
||||
templating:
|
||||
engines: ['twig']
|
||||
default_locale: "%locale%"
|
||||
trusted_hosts: ~
|
||||
session:
|
||||
handler_id: ~
|
||||
fragments: ~
|
||||
http_method_override: true
|
||||
|
||||
# Monolog configuration #
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: '%env(PS_LOG_OUTPUT)%'
|
||||
level: notice
|
||||
legacy:
|
||||
type: service
|
||||
id: prestashop.handler.log
|
||||
level: warning
|
||||
channels: [app]
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
autoescape: "name"
|
||||
debug: "%kernel.debug%"
|
||||
strict_variables: "%kernel.debug%"
|
||||
form_themes:
|
||||
- 'PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig'
|
||||
paths:
|
||||
'%admin_page%/Product': Product
|
||||
'%admin_page%/TwigTemplateForm': Twig
|
||||
'%admin_page%/Configure/AdvancedParameters': AdvancedParameters
|
||||
'%admin_page%/Configure/ShopParameters': ShopParameters
|
||||
'%kernel.root_dir%/../modules': Modules
|
||||
'%mail_themes_dir%': MailThemes
|
||||
globals:
|
||||
webpack_server: false
|
||||
|
||||
# Swiftmailer Configuration
|
||||
swiftmailer:
|
||||
transport: "%mailer_transport%"
|
||||
host: "%mailer_host%"
|
||||
username: "%mailer_user%"
|
||||
password: "%mailer_password%"
|
||||
spool: { type: memory }
|
||||
|
||||
# Guzzle configuration
|
||||
csa_guzzle:
|
||||
profiler:
|
||||
enabled: "%kernel.debug%"
|
||||
cache:
|
||||
enabled: true
|
||||
adapter: guzzle.cache
|
||||
clients:
|
||||
addons_api:
|
||||
config: # you can specify the options as in http://docs.guzzlephp.org/en/latest/quickstart.html#creating-a-client
|
||||
base_url: "https://api-addons.prestashop.com"
|
||||
defaults:
|
||||
timeout: "5.0"
|
||||
headers:
|
||||
Accept: "application/json"
|
||||
|
||||
prestashop:
|
||||
addons:
|
||||
prestatrust:
|
||||
enabled: true
|
||||
api_client:
|
||||
ttl: 7200 # 2h
|
||||
# verify_ssl: ~ # Bundle CA by default, declaring "addons.api_client.verify_ssl" parameter overrides its usage
|
||||
58
app/config/config_dev.yml
Normal file
58
app/config/config_dev.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
framework:
|
||||
router:
|
||||
resource: "%kernel.root_dir%/config/routing_dev.yml"
|
||||
strict_requirements: true
|
||||
profiler: { only_exceptions: false }
|
||||
|
||||
web_profiler:
|
||||
toolbar: '%use_debug_toolbar%'
|
||||
intercept_redirects: false
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: '%env(PS_LOG_OUTPUT)%'
|
||||
level: debug
|
||||
channels: ["!event"]
|
||||
console:
|
||||
type: console
|
||||
bubble: false
|
||||
verbosity_levels:
|
||||
VERBOSITY_VERBOSE: INFO
|
||||
VERBOSITY_VERY_VERBOSE: DEBUG
|
||||
channels: ["!doctrine"]
|
||||
console_very_verbose:
|
||||
type: console
|
||||
bubble: false
|
||||
verbosity_levels:
|
||||
VERBOSITY_VERBOSE: NOTICE
|
||||
VERBOSITY_VERY_VERBOSE: NOTICE
|
||||
VERBOSITY_DEBUG: DEBUG
|
||||
channels: ["doctrine"]
|
||||
# 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_address: me@example.com
|
||||
|
||||
prestashop:
|
||||
addons:
|
||||
api_client:
|
||||
ttl: 300 # 5min
|
||||
|
||||
tactician:
|
||||
commandbus:
|
||||
default:
|
||||
middleware:
|
||||
- prestashop.core.command_bus.middleware.command_register_middleware
|
||||
- tactician.middleware.command_handler
|
||||
14
app/config/config_legacy.yml
Normal file
14
app/config/config_legacy.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
# This config file is destined for legacy containers built by PrestaShop core
|
||||
# For now it is mainly used for Doctrine configuration, but in the future it could contain other extensions config
|
||||
imports:
|
||||
- { resource: doctrine.yml }
|
||||
|
||||
doctrine:
|
||||
orm:
|
||||
mappings:
|
||||
# In front container we must define the mapping manually because PrestaShopBundle cannot do it
|
||||
PrestaShopBundle\Entity:
|
||||
type: annotation
|
||||
dir: "%kernel.project_dir%/src/PrestaShopBundle/Entity"
|
||||
is_bundle: false
|
||||
prefix: PrestaShop
|
||||
2
app/config/config_legacy_dev.yml
Normal file
2
app/config/config_legacy_dev.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: config_legacy.yml }
|
||||
7
app/config/config_legacy_prod.yml
Normal file
7
app/config/config_legacy_prod.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
imports:
|
||||
- { resource: config_legacy.yml }
|
||||
|
||||
doctrine:
|
||||
orm:
|
||||
metadata_cache_driver: "%cache.driver%"
|
||||
query_cache_driver: "%cache.driver%"
|
||||
2
app/config/config_legacy_test.yml
Normal file
2
app/config/config_legacy_test.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: config_legacy.yml }
|
||||
32
app/config/config_prod.yml
Normal file
32
app/config/config_prod.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
#framework:
|
||||
# validation:
|
||||
# cache: validator.mapping.cache.apc
|
||||
# serializer:
|
||||
# cache: serializer.mapping.cache.apc
|
||||
|
||||
#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: '%env(PS_LOG_OUTPUT)%'
|
||||
level: debug
|
||||
console:
|
||||
type: console
|
||||
|
||||
doctrine:
|
||||
orm:
|
||||
metadata_cache_driver: "%cache.driver%"
|
||||
query_cache_driver: "%cache.driver%"
|
||||
31
app/config/config_test.yml
Normal file
31
app/config/config_test.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
parameters:
|
||||
AdapterSecurityAdminClass: LegacyTests\PrestaShopBundle\Mock\AdapterSecurityAdminMock
|
||||
prestashop.security.voter.product.class: LegacyTests\PrestaShopBundle\Mock\PageVoter
|
||||
|
||||
imports:
|
||||
- { resource: config_dev.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
profiler:
|
||||
collect: false
|
||||
|
||||
web_profiler:
|
||||
toolbar: '%use_debug_toolbar%'
|
||||
intercept_redirects: true
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
|
||||
services:
|
||||
prestashop.bundle.routing.converter.cache:
|
||||
class: Symfony\Component\Cache\Adapter\ArrayAdapter
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
connections:
|
||||
default:
|
||||
dbname: "test_%database_name%"
|
||||
27
app/config/doctrine.yml
Normal file
27
app/config/doctrine.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
default_connection: default
|
||||
|
||||
connections:
|
||||
default:
|
||||
driver: pdo_mysql
|
||||
host: "%database_host%"
|
||||
port: "%database_port%"
|
||||
dbname: "%database_name%"
|
||||
user: "%database_user%"
|
||||
password: "%database_password%"
|
||||
charset: utf8mb4
|
||||
mapping_types:
|
||||
enum: string
|
||||
|
||||
options:
|
||||
1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: "%kernel.debug%"
|
||||
naming_strategy: prestashop.database.naming_strategy
|
||||
auto_mapping: true
|
||||
dql:
|
||||
string_functions:
|
||||
regexp: DoctrineExtensions\Query\Mysql\Regexp
|
||||
25
app/config/parameters.php
Normal file
25
app/config/parameters.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php return array (
|
||||
'parameters' =>
|
||||
array (
|
||||
'database_host' => '67806.m.tld.pl',
|
||||
'database_port' => '',
|
||||
'database_name' => 'baza67806_newwalls_ps',
|
||||
'database_user' => 'admin67806_newwalls_ps',
|
||||
'database_password' => '3WzV}620CC',
|
||||
'database_prefix' => 'ps_',
|
||||
'database_engine' => 'InnoDB',
|
||||
'mailer_transport' => 'smtp',
|
||||
'mailer_host' => '127.0.0.1',
|
||||
'mailer_user' => NULL,
|
||||
'mailer_password' => NULL,
|
||||
'secret' => 'yYoY3XAqdU5OPat4PXR7J5ypvj0WskBK1tYgJ7xuAT6bV9Jf924Ykkq0Cc8j4SN9',
|
||||
'ps_caching' => 'CacheMemcache',
|
||||
'ps_cache_enable' => false,
|
||||
'ps_creation_date' => '2021-05-01',
|
||||
'locale' => 'pl-PL',
|
||||
'use_debug_toolbar' => true,
|
||||
'cookie_key' => 'wJtco08GVnRVAGrPJY1biGBDBQ4P6Zpt99j7iaivEQL2m78FPogjPFJT52Va5XRM',
|
||||
'cookie_iv' => 'ORhUQPjPrQgofJ8rXQU4onmz0ohOMAdT',
|
||||
'new_cookie_key' => 'def00000c6329a9fdabc887e7eaec144509760e2d6d0a224a38136b90c405504e899b45ef62aee1edadca805270b1b3d5e43b9cfb53557fb582cb622e01f5339ee284449',
|
||||
),
|
||||
);
|
||||
1
app/config/parameters.yml
Normal file
1
app/config/parameters.yml
Normal file
@@ -0,0 +1 @@
|
||||
parameters:
|
||||
27
app/config/parameters.yml.dist
Normal file
27
app/config/parameters.yml.dist
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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.
|
||||
# http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: ~
|
||||
database_name: prestashop
|
||||
database_user: root
|
||||
database_password: ~
|
||||
database_prefix: ps_
|
||||
database_engine: InnoDB
|
||||
# You should uncomment this if you want use pdo_sqlite
|
||||
# database_path: "%kernel.root_dir%/data.db3"
|
||||
|
||||
mailer_transport: smtp
|
||||
mailer_host: 127.0.0.1
|
||||
mailer_user: ~
|
||||
mailer_password: ~
|
||||
|
||||
# A secret key that's used to generate certain security-related tokens
|
||||
secret: ThisTokenIsNotSoSecretChangeIt
|
||||
ps_caching: CacheMemcache
|
||||
ps_cache_enable: false
|
||||
ps_creation_date: ~
|
||||
locale: en-US
|
||||
|
||||
use_debug_toolbar: true
|
||||
9
app/config/routing.yml
Normal file
9
app/config/routing.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
app:
|
||||
# The main bundle is PrestaShopCoreBundle which will load other dependencies.
|
||||
resource: "@PrestaShopBundle/Resources/config/routing.yml"
|
||||
|
||||
app_modules:
|
||||
# Declare routing.yml file in modules/module-name/config folder.
|
||||
# v1: only YAML format is supported for now.
|
||||
resource: .
|
||||
type: module
|
||||
42
app/config/routing_dev.yml
Normal file
42
app/config/routing_dev.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
_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
|
||||
|
||||
_admin_stock_hot_reload_json:
|
||||
path: /stock/{hash}.hot-update.json
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: PrestaShopBundle:Admin/Stock:hashUpdateJson
|
||||
|
||||
_admin_stock_hot_reload_js:
|
||||
path: /stock/{hash}.hot-update.js
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: PrestaShopBundle:Admin/Stock:hashUpdateJs
|
||||
requirements:
|
||||
hash: .+
|
||||
|
||||
_admin_translations_hot_reload_json:
|
||||
path: /international/{hash}.hot-update.json
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: PrestaShopBundle:Admin/Translations:hashUpdateJson
|
||||
|
||||
_admin_translations_hot_reload_js:
|
||||
path: /international/{hash}.hot-update.js
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: PrestaShopBundle:Admin/Translations:hashUpdateJs
|
||||
requirements:
|
||||
hash: .+
|
||||
20
app/config/security.yml
Normal file
20
app/config/security.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# To get started with security, check out the documentation:
|
||||
# http://symfony.com/doc/current/book/security.html
|
||||
security:
|
||||
|
||||
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
|
||||
providers:
|
||||
in_memory:
|
||||
memory: ~
|
||||
admin:
|
||||
id: prestashop.security.admin.provider
|
||||
|
||||
firewalls:
|
||||
# disables authentication for assets and the profiler, adapt it according to your needs
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
|
||||
main:
|
||||
anonymous: ~
|
||||
logout_on_user_change: true
|
||||
10
app/config/services.yml
Normal file
10
app/config/services.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Learn more about services, parameters and containers at
|
||||
# http://symfony.com/doc/current/book/service_container.html
|
||||
parameters:
|
||||
# parameter_name: value
|
||||
|
||||
services:
|
||||
_defaults:
|
||||
autowire: false
|
||||
autoconfigure: false
|
||||
public: true
|
||||
87
app/config/set_parameters.php
Normal file
87
app/config/set_parameters.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*/
|
||||
|
||||
use PrestaShopBundle\Install\Upgrade;
|
||||
|
||||
$parametersFilepath = __DIR__ . '/parameters.php';
|
||||
if (!file_exists($parametersFilepath)) {
|
||||
// let's check first if there's some old config files which could be migrated
|
||||
if (Upgrade::migrateSettingsFile() === false) {
|
||||
// nothing to migrate ? return
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$parameters = require $parametersFilepath;
|
||||
|
||||
if (!array_key_exists('parameters', $parameters)) {
|
||||
throw new \Exception('Missing "parameters" key in "parameters.php" configuration file');
|
||||
}
|
||||
|
||||
if (!defined('_PS_IN_TEST_') && isset($_SERVER['argv'])) {
|
||||
$input = new \Symfony\Component\Console\Input\ArgvInput();
|
||||
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev');
|
||||
|
||||
if ($env === 'test') {
|
||||
define('_PS_IN_TEST_', 1);
|
||||
}
|
||||
}
|
||||
|
||||
if ($container instanceof \Symfony\Component\DependencyInjection\Container) {
|
||||
foreach ($parameters['parameters'] as $key => $value) {
|
||||
$container->setParameter($key, $value);
|
||||
}
|
||||
|
||||
$driver = 'array';
|
||||
$cacheType = [
|
||||
'CacheMemcache' => ['memcache'],
|
||||
'CacheMemcached' => ['memcached'],
|
||||
'CacheApc' => ['apcu', 'apc'],
|
||||
'CacheXcache' => ['xcache'],
|
||||
];
|
||||
|
||||
if (isset(
|
||||
$parameters['parameters']['ps_cache_enable'],
|
||||
$parameters['parameters']['ps_caching'],
|
||||
$cacheType[$parameters['parameters']['ps_caching']]
|
||||
)
|
||||
&& true === $parameters['parameters']['ps_cache_enable']
|
||||
) {
|
||||
foreach ($cacheType[$parameters['parameters']['ps_caching']] as $type) {
|
||||
if (extension_loaded($type)) {
|
||||
$driver = $type;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$container->setParameter('cache.driver', $driver);
|
||||
|
||||
// Parameter used only in dev and test env
|
||||
$envParameter = getenv('DISABLE_DEBUG_TOOLBAR');
|
||||
if (!isset($parameters['parameters']['use_debug_toolbar']) || false !== $envParameter) {
|
||||
$container->setParameter('use_debug_toolbar', !$envParameter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user