当前位置:网站首页>图书 > 正文 >>

Extending Symfony 2 Web Application Framework

图书信息

作者Sébastien Armand
出版社Packt Publishing
ISBN9781783287208
出版时间2014-03-25
字数62.6万
分类进口书,外文原版书,电脑,网络

读书简介

With lots of practical, handson, stepbystep examples, this book will lead you through how to extend and optimize your Symfony2 framework. If you have a good understanding of how Symfony works and are now trying to integrate complex tasks in your application, or want to better organize your application by keeping each piece of code where it belongs so it can be decoupled and easily used elsewhere, then this book is for you.

目录

Extending Symfony2 Web Application Framework

Table of Contents

Extending Symfony2 Web Application Framework

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Services and Listeners

Services

A geolocation service

Testing services and testing with services

Tagging services

Listeners

Updating user preferences using custom events

Improving user performance

Code that works after the response

Summary

2. Commands and Templates

Commands

The initial situation

Resizing user pictures

Testing a command

Commands as an interface to services

Twig

Managing our scripts

Testing a Twig extension

The time difference filter

Summary

3. Forms

An input for geographical coordinates

Setting up the basics

Using the map

Data transformers

Forms based on user data

Going further

The initial setup

Adding and removing fields

Summary

4. Security

Authentication

Simple OAuth with GitHub

The firewall

The security factory

Authorization

Voters

Annotations

Defining an annotation

Securing controllers with custom annotations

Securing an API – an example

Summary

5. Doctrine

Creating your own data types

User and meetup locations

Testing

Custom DQL functions

Versioning

Setting a version on all entities

Using and updating versions

Testing

Creating a Doctrine filter

Summary

6. Sharing Your Extensions

Creating the bundle

Exposing the configuration

Getting ready to share

Research

Documentation

Testing

Distribution and licensing

Is it just a bundle?

Summary

Index