定制 wwwision/fusion-prototype-analyzer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wwwision/fusion-prototype-analyzer

最新稳定版本:1.3.0

Composer 安装命令:

composer require wwwision/fusion-prototype-analyzer

包简介

Anaylze Neos Fusion prototypes and their usages by other prototypes

README 文档

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

统计信息

  • 总下载量: 4.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-14