 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Henrik Bjørnskov' Blog: Symfony2 Quick tip for your security configuration
by Chris Cornutt December 27, 2011 @ 08:40:45
Henrik Bjørnskov has a quick new post with a security tip for those using the Symfony2 framework in its configuration.
Earlier when playing around with the Security component and SecurityBundle i found that for all paths you can specify a route name and the component will match it when check for the request paths.
Setting this up in your configuration gives you more control over the paths that are matched as well as more flexibility in defining them. He includes a note about a change you might have to make to the SecurityBundle's code to get the "check_path" part working correctly. You can find out more about the SecurityBundle's integration in this blog post from Pablo Bandin.
voice your opinion now!
symfony2 framework security bundle checkpath path
Leasewebs Labs: Painless (well, less painful) migration to Symfony2
by Chris Cornutt December 23, 2011 @ 11:02:12
Stefan Koopmanschap has written up an article on the Leaseweblabs.com blog about migrating a Symfony 1 application to Symfony2 in a (slightly) less painful way that making the move all at once.
It is much easier to do a gradual migration. Start with one part of your application, and bit by bit migrate your logic and application. The traditional way of doing such migrations is to create a new project and have parallel development on the old and the new version of the application. The problem with this, though, is that when you make a change to your old application, you have to make the same change in the new codebase, essentially doubling the amount of work for each feature you need to implement. [...] You could wrap your old application into your Symfony2 application, and have different parts of your application be handled by different versions of your codebase.
With the help of a bundle he created, IngewikkeldWrapperBundle that handles the rerouting of your requests based on where the requested resource exists (in the Symfony 1 or 2 codebase).
voice your opinion now!
symfony2 migrate codebase bundle painless
Dzone.com: Two Symfony2 Bundle Repositories
by Chris Cornutt December 22, 2011 @ 12:05:43
On DZone.com John Esposito has a new post sharing two Symfony2 bundle repositories you can look to to improve your development experience with the framework - KnpBundles and Symfohub.
If you're using Symfony2, you already know that the framework uses 'bundles', the equivalent of plugins, if the core counted as a plugin too. (The official documentation calls bundles 'first-class citizens' in Symfony2.) So far so great idea, but an ecosystem depends on a community, and a community needs some kind of organization. So how is the Symfony2 bundle community organized, and how do you find existing third-party bundles?
KnpBundles provides a larger resource than Symfohub, but both have handy features to help you find what you're looking for - filtering, search recommendations and rankings.
voice your opinion now!
symfony2 bundle repository knpbundles symfohub
Johannes Schmitt's Blog: A New Killer Feature for Symfony2 Security
by Chris Cornutt October 31, 2011 @ 14:26:08
Johannes Schmitt has a new post about his "killer feature" he's added to the security for Symfony2 framework (as a bundle) - a new customized expression-based query language that's compiled down to native PHP to make permissions checking simpler and faster.
If you have used the Symfony2 Security Component to any modest degree, you will know that we have a quite heavy voting system which uses attributes like "IS_AUTHENTICATED_FULLY" to make authorization decisions. [...] If you are concerned about performance, then you should not be all too generous with the isGranted() calls. The second option would work as well, but writing a new voter each time you need to make a new check does not really seem ideal either. Fortunately, we can do better.
He includes an example of this expression language in a direct isGranted() call, a string that checks to see if a user has three different roles, and a snippet showing the same thing in the docblock comment of a controller method. The second is a bit more complex, checking for an admin role or if the user is the one that should be deleted. You can find more doucmentation here.
voice your opinion now!
symfony2 framework security bundle expression language allow deny
Johannes Schlüter's Blog: Symfony 2 and mysqlnd
by Chris Cornutt October 03, 2011 @ 09:22:52
Johannes Schlüter has a new post to his blog today about a bundle he's created for the Symfony2 framework that integrates some of the advanced statistics mysqlnd provides back to the framework's profiler tool - JSMysqlndBundle.
Symfony provides a nice feature, which is the Symfony Profilier, an extensive logging and reporting system for Symfony developers to understand what's going on. A part of it is the Doctrine query logger which lists all database queries executed by Doctrine and their execution time. This is nice but when we're using mysqlnd in our PHP build we have more information available. "So why not use that information," I thought and built a new bundle for Symfony 2 doing exactly that.
His bundle takes the "150 or so" statistics and drops them into the profiler, giving you even more insight into how your script is running. The bundle is available on github, making it simpler to fork and extend to add other features (some he suggests include caching and replication decisions using information from other mysqlnd plugins).
voice your opinion now!
mysqlnd symfony2 profiler mysql bundle
Project: Mink library integration bundle for Symfony2 (for Behat)
by Chris Cornutt April 21, 2011 @ 11:44:02
Konstantin Kudryashov has linked to a new tool that's adds BehatMink browser abstraction library for your Symfony2 project as a part of the Behat project (a BDD testing tool for PHP).
You can now test your Symfony2 applications with PHPUnit and Mink, thanks to brand new MinkBundle.
This new tool provides a clean API, support for Symfony2's test.client browser emulator and support for the Goutte and Sahi browser emulators as well. In the README on it's github page, they've provided some sample code snippets that show how to register the namespaces, add it to your application kernel/add the config, enable the GoutteDriver and SahiDriver and, of course, write a first test.
voice your opinion now!
mink library integration behat bdd testing symfony2 bundle
Query7.com: A Look At PHP 5.3 Frameworks - Symfony2
by Chris Cornutt March 14, 2011 @ 08:38:22
On Query7.com today they've posted the first in a series looking at frameworks that are more PHP 5.3 centric. They start things off with a very popular framework that currently has a major update in the works - Symfony2.
Ever since PHP5.3 was released we have seen several new frameworks pop up in the PHP community. In this series of articles we will look at and evaluate some of the next generation PHP frameworks. Today we look at Symfony2.
He starts with an overview of what the framework has to offer - things like the expected MVC structure, database integration with Doctrine2 and templating with Twig - as well as its heavy use of dependency injection. He also mentions its ability to use PHP, XML or YAML for configuration files as well as other features like bundles, large support for testing and built-in HTTP caching. He also briefly mentions something that is the heart and soul of any open source project - its community.
voice your opinion now!
symfony2 overview feature bundle unittest http cache community
Symfony-Reloaded.org: Bundle Best Practices
by Chris Cornutt July 07, 2010 @ 12:02:34
On the Symfony-Reloaded site (the site for the upcoming Symfony2 version of the framework) there's a recently updated page talking about bundle best practices to use when creating these standardized, easy-to-install packages.
A bundle is a directory that has a well-defined structure and can host anything from classes to controllers and web resources. Even if bundles are very flexible, you should follow some best practices if you want to distribute them.
There's a few standards they lay out concerning the bundle naming scheme (namespacing), the directory structure that'd need to be used (including a "resources" and "controller" directory) and where classes, third-party library use, documentation, templates, configuration and tests should fit in the structure.
voice your opinion now!
symfony2 framework bundle bestpractice
|
Community Events
Don't see your event here? Let us know!
|