Coder Social home page Coder Social logo

common's Introduction

FzyCommon Module

Services

  • FzyCommon\Service\EntityToForm: accepts doctrine entity and returns a ZF2 form class (\Zend\Form\Form) bound to the entity and hydrated with its information.
  • FzyCommon\EntityToForm: alias for FzyCommon\Service\EntityToForm
  • FzyCommon\Service\Search\Result: accepts a result provider interface and formats the search result in a standard way
  • FzyCommon\Search\Result: alias for FzyCommon\Service\Search\Result
  • FzyCommon\Service\Url: service to create URLs from ZF2 route names or from an AWS S3 key
  • FzyCommon\Url: alias for FzyCommon\Service\Url
  • FzyCommon\Service\Render: service to render a View Model or string path to a view file into HTML
  • FzyCommon\Render: alias for FzyCommon\Service\Render
  • FzyCommon\Config: returns the ZF2 application's configuration wrapped in a \FzyCommon\Util\Params container.
  • FzyCommon\ModuleConfig: returns config data specific to this module (\FzyCommon\Service\Base::MODULE_CONFIG_KEY) wrapped in a \FzyCommon\Util\Params container.
  • FzyCommon\Service\Aws\Config: returns the aws key from FzyCommon\ModuleConfig wrapped in a \FzyCommon\Util\Params container.
  • FzyCommon\Service\Aws\S3\Config: returns the s3 key from FzyCommon\Service\Aws\Config wrapped in a \FzyCommon\Util\Params container.
  • FzyCommon\Service\Aws\S3: returns configured \Aws\S3\S3Client object (using FzyCommon\Service\Aws\S3\Config)
  • FzyCommon\Factory\DoctrineCache: returns configured Doctrine\Common\Cache class based on environment.

View Helpers

  • fzyFlashMessages: returns an array of arrays of messages in the flash messenger, indexed by their type. e.g. [ "success": [ "Your settings have been saved" ], "warning": [], "danger": [], "info": [] ]
  • fzyEntityToForm: provides shortcut to the FzyCommon\Service\EntityToForm service
  • fzyNgInit: handles json encoding and escaping literals, objects and doctrine entities for injection into an angular scope.
  • fzyRequest: accessor for the view to query the current request

Controller Plugins

  • fzySearchResult: plugin to standardize the response format for a search.
  • fzyUpdateResult: plugin to standardize the response format for an update.
  • fzyEntityToForm: provides shortcut to the FzyCommon\Service\EntityToForm service

Controllers

Options

  • debug: used as a flag to indicate this code should expose errors and exceptions for debugging.
  • production: used as a flag to indicate this code is running in a production environment.
  • doctrine_cache: the service key to be used for generating the doctrine cache object. (default: FzyCommon\Factory\DoctrineCache which is a Redis service)
  • doctrine_cache_config: configuration for setting up the doctrine_cache service. (default: the Redis connection credentials)
  • aws: configuration for connecting to AWS services (should contain credentials indexed by service like:
"aws": [
  "s3": [
    "key": "your-aws-key",
    "secret": "your-aws-secret"
  ]
]

common's People

Contributors

foush avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.