2017 © Pedro PelĆ”ez
 

library puppy-service

Services for Puppy framework

image

raphhh/puppy-service

Services for Puppy framework

  • Sunday, March 22, 2015
  • by raphhh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 151 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Puppy Service

Latest Stable Version Build Status Scrutinizer Quality Score Code Coverage Dependency Status Total Downloads Reference Status License, (*1)

Basic services for Puppy framework., (*2)

Installation

$ composer require raphhh/puppy-service

Session

Service for Symfony\Component\HttpFoundation\Session\Session., (*3)

Template

Service for Twig_Environment., (*4)

Note that the services are accessible in twig templates with the global variable "services"., (*5)

Twig has also a filter "link". This filter prepends the config "baseUrl" to a link., (*6)

<a href="{{ 'my/page'|link }}">click here</a>

Config options

  • 'template.directory.main' => path to the directory of the template files.
  • 'template.directory.cache' => path to the directory of the cache of the template files.
  • 'template.debug' => indicates if the debug mode is enable in the template.
  • 'baseUrl' => gives the base url to apply for the twig filter "link".
  • 'session.sessionStorageClass' => name of the class to handle the session storage.
  • 'session.attributeBagClass' => name of the class to handle the attributes session.
  • 'session.flashBagClass' => name of the class to handle the flash session.

The Versions

22/03 2015

dev-master

9999999-dev https://github.com/Raphhh/puppy-service

Services for Puppy framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Raphaƫl Lefebvre

puppy

22/03 2015

1.0.0

1.0.0.0 https://github.com/Raphhh/puppy-service

Services for Puppy framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Raphaƫl Lefebvre

puppy