Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 772 Bytes

README.rst

File metadata and controls

43 lines (25 loc) · 772 Bytes

Extend event parser

Parses Extend::call(), Extend::buffer() and Extend::fetch() calls and produces a JSON output with the found invocations.

Requirements

  • PHP 7.1+
  • SunLight CMS codebase (version 8.x)
  • Composer

Installation

  1. download (or clone) this repository
  2. run composer install

Usage

Parsing calls in all PHP files in the given directory

bin/parse path/to/sunlight/cms/source

Note

Files under vendor, plugins, cache and tmp directories are ignored.

Parsing calls in a single file

bin/parse path/to/file.php