Skip to content

run-as-root/magento-cli-auto-proxy

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 6, 2023 18:33
November 2, 2022 10:27
November 2, 2022 13:57
November 2, 2022 10:27
August 6, 2023 18:33
August 6, 2023 18:33

Magento 2 PHP PHP PHP PHP composer packagist build


Logo

Magento 2 - Auto Proxy to CLI class arguments

Automatically injects Proxy for any argument defined in CLI command class constructor.

About The Project

Purpose:

  • eliminate issues while installation of your project with a fresh database (usually used with integration tests) - caused by not using Proxy in CLI of 3rd parties: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.flag' doesn't exist, query was: SELECT flag.* FROM flag WHERE (flag.flag_code='staging')
  • speed up php bin/magento command execution;

Getting Started

Prerequisites

  • Magento v2.4.* and upper
  • composer v2 and upper

Structure

Installation

composer req run_as_root/magento-cli-auto-proxy:^1

Roadmap

  • MVP release
  • Documentation
  • PHP 8 support
  • Unit tests coverage
  • Static tests coverage
    • php linting
    • phpcs
    • phpmd
    • phpstan
  • Integration tests coverage
  • Pipelines tests automation
    • Static tests
    • Unit tests
    • Integration tests
    • Magento multiversions tests

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Vlad Podorozhnyi
Twitter: @vpodorozh
Email: vpodorozh@gmail.com | vlad.podorozhnyi@run-as-root.sh

run_as_root GmbH
Twitter: @run_as_root
Email: info@run-as-root.sh