Skip to content

Commit e346f76

Browse files
feat(functions): add Composer autoloader phpdoc
1 parent 036a473 commit e346f76

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

functions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* Bootstrap the theme Composer autoloader when classes are not already available.
5+
*
6+
* Root projects (Bedrock, composer-scaffold-theme) usually register this namespace
7+
* via their own autoload. Standalone setups (wp-env, theme-only) rely on vendor/.
8+
*
9+
* @since 5.4.0
10+
*/
311
if ( ! class_exists( 'BEA\\Theme\\Framework\\Framework', false ) ) {
412
$autoloader = __DIR__ . '/vendor/autoload.php';
513

0 commit comments

Comments
 (0)