Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
423 stars 57 forks source link

Allow subdirectories for composers #113

Closed squareone-jarrod closed 2 years ago

squareone-jarrod commented 2 years ago

I wanted to be able to categorise my ACF Blocks into subdirectories to make them more manageable. Though I soon learned that I couldn't do this due to the way that the fully qualified class name gets resolved from the composer path.

For instance, my blocks directory looks like this:

Blocks
  - Typography
      - Heading.php
      - Text.php
  - WooCommerce
      - Products.php

But when trying to figure out the FQ class name, it arrives at: MyTheme\Content\Heading (omitting the Blocks directory). I've created a PR that correctly picks up the FQ class name.

Log1x commented 2 years ago

Should be resolved with #104