Skip to content

Update Considerations: autoloader, singleton  #90

@divyarajmasani

Description

@divyarajmasani

Summary

  1. Currently, 'blank-theme' uses a custom autoloader, which works fine. However, to align the code more with how things are done for PHP in general, we can update to use the composer autoloader and remove the custom one.

  2. Revisit the Singleton pattern used to compose and load the necessary components for the theme. Now, this may result in unnecessary classes being loaded on all requests. This may be fine with a small-scale code base; however, the complexity of features may add to memory cost. Identify/update to only load classes when needed.

References

Acceptance Criteria

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions