Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
title: [metapackage] Cli Constructor Arg Auto Proxy  
keywords: CLI, Proxy, ObjectManager  
author: Vlad Podorozhnyi  
send_questions_to: vpodorozh@gmail.com | vlad.podorozhnyi@run-as-root.sh  
category: System
---

Magento 2 PHP composer packagist

[metapackage] Cli Constructor Arg Auto Proxy


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:

  • speed up php bin/magento command execution;
  • eliminate .flag table not found issues while installation of your project with fresh database (usually used with integration tests) - caused by not using Proxy in CLI of 3rd parties.

Structure:

Project consists of 3 packages:

  • Magento 2 Component: vpodorozh/cli-construct-arg-auto-proxy-component
    Provides entry point to Magento via global DI config.
  • Library: vpodorozh/cli-construct-arg-auto-proxy-lib
    Contains main logic about Proxy injection into CLI constructor args;
  • Metapackage: vpodorozh/cli-construct-arg-auto-proxy-meta
    Main package, orchestrate project from versioning and tracking points.

Getting Started

Prerequisites

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

Installation

# flush cache first
php bin/magento cache:flush
# then require a package
composer req vpodorozh/cli-construct-arg-auto-proxy-meta:*

Roadmap

  • MVP release
  • Documentation
  • PHP 8 support (mostl likely supported already :suspect: )
  • 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