2

Is there a way to run that validations from Magento 2's setup:di:compile without doing a full compile? The setup:di:compile command runs a number of validations on every class file it processes. For example, it checks that you're not declaring a dependency that exists in a context object

Is there a way to run these validations without doing a full compile? The setup:di:compile command can take long time to run, and there's nothing more frustrating at the end of a project than

  1. Run the compiler
  2. Wait 5 minutes
  3. See the error
  4. Run the compiler again
  5. Wait another 5 minutes
  6. See the next error

If there was a way to run these validations stand alone it would make developers life's a bit more pleasant.

3

There is \Magento\Test\Integrity\Di\CompilerTest in dev/tests/static/testsuite. It runs compiler checks on code

0

Although the code exists, there does not appear to be a stock, independent way to run these validations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.