wwwision/fusion-prototype-analyzer

Anaylze Neos Fusion prototypes and their usages by other prototypes

Fund package maintenance!
bwaidelich
Paypal

Installs: 2 375

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 4

Type:neos-package

1.3.0 2024-02-12 08:29 UTC

This package is auto-updated.

Last update: 2024-04-12 08:56:26 UTC


README

Analyze Neos Fusion prototypes and their usages by other prototypes.

Installation

Install via composer:

composer require --dev wwwision/fusion-prototype-analyzer

Usage

This package comes with two CLI commands:

Find nested prototypes

Allows finding prototypes that are used by the specified prototype (recursively):

./flow prototype:findnested Some.Package:Some.Prototype

This might output something like:

The prototype Some.Package:Some.Prototype contains 6 other prototypes (for site package Some.Package):

Neos.Fusion (4)
   Tag
   DataStructure
   Component
   Case

Some.Package (2)
   Component.Atom.SomeComponent
   Component.Atom.SomeOtherComponent

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findnested Some.Package:Some.Prototype --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified prototype name

Find prototype usages

Allows finding prototypes that use the specified prototype (recursively):

./flow prototype:findusages Some.Package:Some.Prototype

This might output something like:

The prototype Some.Package:Some.Prototype is used by 4 other prototypes (for site package Some.Package):

Some.Package (5)
   Component.Template.Component1
   Component.Template.Component2
   Document.SomeDocument
   Document.SomeOtherDocument

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findusages Some.Package:Some.Prototype --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified prototype name

Find prototypes used by Node Type

Allows finding prototypes that are used by a specified Node Type (recursively):

./flow prototype:findbynodetype Some.Package:Some.NodeType

This might output something like:

The node type Some.Package:Some.NodeType uses 3 Fusion prototypes (for site package Some.Package):

Some.Package (5)
   Component.Template.Component1
   Component.Template.Component2
   Document.SomeDocument
   Document.SomeOtherDocument

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findbynodetype Some.Package:Some.NodeType --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified node type name

Contribution

Contributions in the form of issues or pull requests are highly appreciated.

License

See LICENSE