• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

atom-symfony

A collection of Symfony2 snippets
  • #snippets
  • #symfony2
  • #autocomplete
  • #php
elephantly
1.2.4 1,268
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-symfony package

apm apm apm

A set of symfony snippets for atom

Every snippets starts with 'sf', just type in sf and the list of available snippets will appear.

Snippets

Commons

  • getset : Create Getters and Setters for a variable

Command

  • sfcommand : Backbone to create a ContainerAwareCommand

  • sfcommandAddA : Add Argument in configuration

  • sfcommandAddO : Add Option in configuration

  • sfcommandGetA : Get Argument in execute

  • sfcommandGetO : Get Option in execute

  • sfcommandO : Output line in execute

Controller

  • sfaction : Basic backbone of action

  • sfcontroller : Backbone to create a Controller

  • sfem : Getting entity manager

  • sfforward : Forwarding to another action

  • sfredirect : Redirecting to another route

  • sfrender : Rendering Template

  • sfrepo : Get Repository

  • sfrequest : Get Request

  • sfsession : Get Session

  • sfflash : Set Flash

Dependency injection

  • sfbundleconf : Backbone to create a Bundle configuration class

  • sfbundleext : Backbone to create a Bundle extension class

Doctrine Annotations

These snippets work in xml and php :) yml to come

  • sfdoctrinefield : Simple field annotation

  • sfdoctrineid : Id field annotation

  • sfdoctrinemanytoone : ManyToOne mapping

  • sfdoctrineonetomany : OneToMany Mapping

  • sfdoctrineonetoone : OneToOne Mapping

  • sfdoctrinemanytomanyo : ManyToMany Owner Mapping

  • sfdoctrinemanytomanyi : ManyToMany Inverse Mapping

  • sfdoctrineentity : Entity Mapping

Form

  • sfdatatransformer : Backbone to create a DataTransformer

  • sfform : Backbone to create a FormType

Routing

  • sfroute : Backbone to define a route

Services

This snippet works in xml and yml :)

  • sfservice : Backbone to declare a service

Twig

  • sftwigextension : Backbone to create a Twig Extension

  • sftwigaddfilters : Adding filters to a twig extension

  • sftwigaddfunctions : Adding functions to a twig extension

  • sftwigaddtests : Adding tests to a twig extension

  • sftwigaddglobals : Adding globals to a twig extension

Twig Template

  • sfform : Render form tag

  • sfformrow : Render form row tag

  • trans : Render trans tag

  • asset : Render asset tag

  • asseticcss : Render assetic css tag

  • asseticjs : Render assetic js tag

Validators

  • sfconstraintvalidator : Backbone to create a Constraint Validator

  • sfconstraint : Backbone to create a Constraint Validator

Enjoy ! :)

If you wish to contribute to this package :) you're very welcome :)

A screenshot of your package

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by