Re: [symfony-devs] File storage abstraction/api for Symfony LTS?

2013-04-12 Thread David Buchmann
btw, in SonataMediaBundle [1] there are quite some things about handling cnd and file systems. it could be a good use case to challenge any solution we come up with. it would be great if somebody can come up with a good concept for this. not sure if gaufrette is complete and enough or if it needs

[symfony-devs] Re: Directories for db models

2013-04-10 Thread David Buchmann
/issues/1081 feedback welcome. when i have a go that we do it this way, i will write a cookbook entry for bundles with reusable entities and the compiler passes for doctrine mongo/couch/phpcr. cheers,david Am 20.02.2013 13:53, schrieb David Buchmann: > hi, > > i want to try to revive an old d

[symfony-devs] Re: Directories for db models

2013-03-26 Thread David Buchmann
questions. feedback is very welcome. cheers,david [1] https://github.com/dbu/FOSUserBundle/blob/doctrine-compiler-pass/DependencyInjection/OrmMappingBundleInterface.php [2] https://github.com/dbu/FOSUserBundle/pull/1 cheers,david Am 20.02.2013 13:53, schrieb David Buchmann: > hi, > > i wa

Re: [symfony-devs] Re: The Symfony mailing-lists on Google

2013-03-26 Thread David Buchmann
can phpbb also handle answering to emails? sort of like github or jira, where an answer email creates a new comment on the issue... then i think we could take this as a chance to re-unite the forum and mailinglist communities. if it won't be possible to answer by email, we either need somebody to

Re: [symfony-devs] call stored procedure

2013-03-19 Thread David Buchmann
i think this question should be asked on a doctrine channel (assuming you use doctrine), see http://www.doctrine-project.org/ a quick check in the doctrine documentation found me this: http://docs.doctrine-project.org/en/latest/reference/native-sql.html Am 19.03.2013 10:08, schrieb Asep Fajar Nug

Re: [symfony-devs] Google Summer of Code 2013

2013-03-19 Thread David Buchmann
i think that is an excellent idea. i forwarded this to the symfony-cmf-devs list so that the content management framework developpers also think about this. one thing that comes to my mind would be to clean up the sonata admin code and documentation. it is an insanely powerful system, but hard to

Re: [symfony-devs] Re: Symfony2 use cases

2013-03-10 Thread David Buchmann
while drupal 8 is probably a good name to promote symfony with business people, the rest of the frameworks mentioned is probably not that known to managers. it does surely not hurt to collect a more and more impressive list of what is using symfony components, but i think the most important are rea

Re: [symfony-devs] Create an utility class into Symfony bundle

2013-03-10 Thread David Buchmann
this is the mailing list about developping symfony2, so not really the right place for this kind of questions. you should use the symfo...@googlegroups.com list for such questions. > Hi, I'm trying to create an utility class (inside a generic Utility > subdirectory of my bundle) to implement some

Re: [symfony-devs] Re: Symfony2 use cases

2013-03-10 Thread David Buchmann
> - Demo repositories like https://github.com/liip/LiipHelloBundle but > focus on starters demonstrating the power of Doctrine, Twig, Forms you could add https://github.com/dbu/symfony-speed/ to that collection, a step-by-step demo how to optimize requests with assetic and varnish. cheers,david

[symfony-devs] Directories for db models

2013-02-20 Thread David Buchmann
hi, i want to try to revive an old discussion [1] that never came to any conclusion: what would be the right folders for doctrine model classes? with phpcr-odm we start to see clashes between mongo-odm and phpcr-odm [2]. the thread went into a discussion that having persistence specific classes

Re: [symfony-devs] "Alter" events

2012-11-08 Thread David Buchmann
probably not fair to pick the concrete example of routing, but: you could use the DynamicRouter and write a route repository that triggers the "RoutesCollect" (what you call "info") event and then the "RoutesAlter" event. btw, i think lukas smith is pushing for an "alter" cicle in the DI loading,

Re: [symfony-devs] [Routing] How to dynamically add requirements to routes.

2012-10-25 Thread David Buchmann
hi, probably not exactly what you need, but if you need more dynamic routes, take a look at the SymfonyCmfRoutingExtraBundle, it has code to handle routes coming from any source, i.e. a database. cheers, david Am 17.10.2012 23:06, schrieb Mario Alberto Alvarez Garcia: > Hi, > I'm trying to find

Re: [symfony-devs] Event dispatching order routing vs security

2012-10-01 Thread David Buchmann
> be that as it may .. how do we address the issue of wanting to be able to > match different routes for different users? > > f.e. i want to be able to have a publish/unpublish flag for pages .. or a > publish date. of course this would not apply to admins, who also need to be > abel to view un

Re: [symfony-devs] Symfony/Symfony-standard Version 2.2 has dependency issue

2012-10-01 Thread David Buchmann
are you sure you wanted to update the dependencies? usually you just do composer install, and this will get you the set of version known to work together as defined in composer.lock Am 22.09.2012 01:38, schrieb John Francis Mukulu: > I need help on which version of repository should i set for thi

Re: [symfony-devs] code review, missing app_dev.php'

2012-10-01 Thread David Buchmann
if you checked out a project based on the symfony standard edition and need the router then either something needs to be fixed or you have to figure out what happened to app_dev.php btw its uncommon that the vendor code lives in src/ take a look at the symfony standard edition if you want to unde

[symfony-devs] cache:clear warmup fatal error

2012-09-18 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, in the cmf project we encounter a weird issue with the cache clearing and warmup process: https://github.com/symfony-cmf/Routing/issues/15 basically it looks like when we run cache:clear something is not realizing appdevUrlMatcher already is load

Re: [symfony-devs] A formal release process proposal

2012-09-17 Thread David Buchmann
> Do you have any thoughts about new major PHP releases? Current minimum > PHP version is 5.3.3. PHP 5.4 is not adapted by enterprise systems yet > - but it is only a matter of time. i guess 5.3 will stay around for quite a while. not all hosters are quick to update. making real use of 5.4 means b

Re: [symfony-devs] Redirection in Symfony2

2012-09-10 Thread David Buchmann
hi, if you extend the symfony base controller, you can simply do $this->redirect($this->generateUrl('url')); i don't think this is more complicated. the plus side is that you need to remember only those two methods. generating an url for something else than redirecting works the same way. cheer

Re: [symfony-devs] Create entity without id

2012-09-07 Thread David Buchmann
this mailinglist is about symfony development, not about doctrine user questions. you should ask on one of the support channels of doctrine [1] what you are looking for is id generators. a not very good example is here [2] for all its worth. that said, i have to add: be really careful about addi

Re: [symfony-devs] Template {{ asset() }} and multiple including the same JS lib

2012-08-29 Thread David Buchmann
way this could be solved is with a set of suggested > standards for admin bundles, serializers etc. but this could be seen as > unfair on other bundles of that do the same thing. > > [1] - http://nelm.io/blog/2012/05/an-appeal-to-all-package-managers/ > > Thanks > > Michael C >

Re: [symfony-devs] Template {{ asset() }} and multiple including the same JS lib

2012-08-29 Thread David Buchmann
when i last discussed with jordi, one of the brains behind composer, he was looking for a solution for managing javascript dependencies. its kind of strange to need symfony bundles for javascript code, just so the php composer can track them. if somebody has good ideas (i.e. knows if there is a de

Re: [symfony-devs] Directories for db models

2012-04-03 Thread David Buchmann
entios have the advantage that they are very simple to follow and > understand, just that they easily lead to undesired coupling. > > Research that keeps me up on this topic is the new "Data, Context, > Interaction" movement and this talk by Uncle Bob: > http://confreaks.com/vide

Re: [symfony-devs] Directories for db models

2012-03-28 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, we are actually discussing two things here: 1. how to avoid namespace collisions when you create persistence specific classes 2. how to avoid writing persistence specific classes 1) i totally agree we have to avoid name clashes and will happily

Re: [symfony-devs] Mixed feelings using PEAR

2012-03-26 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i don't think its realistic to expect every bundle to exist in PEAR. bundles are developped by various parties. however, there is hope: for symfony 2.1, dependencies will be managed with composer [1]. there where ideas to have composer keep local

Re: [symfony-devs] multistatus: check many git clones for unpushed changes

2012-02-08 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 cool idea, thanks for sharing! however, it would be even more useful if it would walk the vendors directory to find any git roots (folders having .git in them) as some libraries are included directly in vendors, and for bundles/ there might be various

Re: [symfony-devs] [RFC] Symfony2 CI server

2011-11-21 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i would love to see symfony using travis to automatically test pull requests. its just so much better than asking the people to confirm unit tests still run (even if they really ran the full suite and do not lie, i doubt everybody re-runs it for e

Re: [symfony-devs] Symfony 2 + AS400

2011-11-04 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, symfony itself does not have to do anything with databases, it is a framework and not a database driver. it bundles doctrine, which is what you probably tried to use. try to see if you find information on http://www.doctrine-project.org and if not

Re: [symfony-devs] Strange error after project deployment

2011-10-02 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, this looks very strange indeed. see the path app/cache/dev... => you ususally deploy with a production kernel (web/app.php and not web/app_dev.php and $kernel = new AppCache(new AppKernel('prod', false)); make sure when deploying you run app/cons

Re: [symfony-devs] i18n: fallback mechanism seems is not working ok.

2011-09-27 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I have to clean the cache to see again the translations correctly. > > Is this a bug? > > sf 2.0.3 https://github.com/symfony/symfony/issues/2250 (as mentioned in the other thread about this topic ;-) i do hope somebody with more insight can fig

Re: [symfony-devs] More complex routing

2011-08-11 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi magnus, hi everybody, a follow up to this old thread: we are finally working on a bundle to chain routers. the benefit over registering several event listeners is a little performance gain and more explicit control over what is happening. we need

[symfony-devs] git subtree

2011-07-27 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, and sorry for abusing this list for a non-symfony question. (but its for the symfony cmf project, so i hope you can bare with me) we want to put most of the cmf bundles into one git repository, but additionally expose some of them as separate git

Re: [symfony-devs] Fwd: [Symfony2] Please help with Assetic

2011-06-01 Thread David Buchmann
ate custom bundle and use paths in this way. > > 31 травня 2011 р. 10:21 David Buchmann <mailto:david.buchm...@liip.ch>> написав: > > hi anton, > > this sounds like you are not using the AsseticBundle. if you use the > assetic bundle, you will have something lik

Re: [symfony-devs] Fwd: [Symfony2] Please help with Assetic

2011-05-31 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i did an internal presentation on assetic, explaining it as far as found out experimenting and gathered from the mailing list. the slides are available and might help a bit: http://slides.liip.ch/static/2011-05-31_assetic/#1 -BEGIN PGP SIGNATURE---

Re: [symfony-devs] Fwd: [Symfony2] Please help with Assetic

2011-05-31 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi anton, this sounds like you are not using the AsseticBundle. if you use the assetic bundle, you will have something like the following in your template, and let assetic handle it (i recommend setting the controller to true in your config_dev.yml)

Re: [symfony-devs] Doctrine Common 3.0 Annotation Reader AnnotationException

2011-05-26 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > And what about forcing usage of () at the end. Seems to be > straightforward and fixes most issues. +1 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3e

Re: [symfony-devs] [Symfony2] what Bundles to bundle in the SE?

2011-05-20 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 FOSUserBundle: when looking at the number of questions on the symfony-users list regarding the user bundle, i think it would help many beginners to have a basic user setup in the standard edition. its easy to turn off if you don't need it, but for beg

Re: [symfony-devs] More complex routing

2011-05-15 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi magnus, this sounds like a very interesting approach to that problem. can you provide some pointers how to use (build?) such a chain router and implement a custom router? for the cmf, we currently have a navigation module that uses a catch-all rout

Re: [symfony-devs] Re: Support for multiple databases should be easier

2011-05-15 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hello bart, > I've been aware of the CMF project for a while, but i'm afraid our CMS > needs to remain proprietary due to the nature of our customers, at > least for a little while. > I am however reading up on the CMF project and adapting our design

Re: [symfony-devs] Support for multiple databases should be easier

2011-05-13 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi bart, > The company i work for has started developing a content management > system on top of Symfony 2. did you see the content management framework project? the aim is to build pluggable components that can be used to build content management in

Re: [symfony-devs] [Sf2] Form: persistent file uploads ?

2011-05-02 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi victor, i think the best strategy would be: keep the default (persist), but add your max size idea (if total size is > limit, delete older files until in limit again) or just have a max age (delete everything older than i.e. an hour) with again a

Re: [symfony-devs] Re: Assetic extension bug in PR12

2011-04-26 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> Thanks. I understand that vendors.sh will be updated to use alpha2 > > it has been .. > > however i think its no longer necessary as Fabien merged the necessary core > changes. i can confirm that. had the problem, now using both master for symfo

Re: [symfony-devs] RFC: LoggerInterface adjustments

2011-04-25 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 for following naming conventions and call the methods to add log messages addXXX() as you can choose your own logger with as many levels as you want for your application anyway, it seems a good idea to me to keep the required number as low as possi

Re: [symfony-devs] Include PHPUnit in Symfony2 vendors

2011-04-16 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 maybe it would make sense to provide a symfony2 testbed distribution for that, with a recent phpunit in the vendors folder? and some useful configuration to run the test suites for different parts of symfony... phpunit does not belong onto a productio

Re: [symfony-devs] Re: Can we add JSON to the content-types that are parsed for ESI information?

2011-04-07 Thread David Buchmann
er users. I'd > prefer not to use XML for reasons I don't need to go into here (much > bigger debate). > > This is of course, just a suggestion. Thoughts? > > Thanks, > Marc > > On Apr 7, 2:32 am, David Buchmann wrote: > hi, > > you can write your

Re: [symfony-devs] Can we add JSON to the content-types that are parsed for ESI information?

2011-04-07 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, you can write your own service declaration for the esi service for your application and pass an argument to the constructor with the types that should be handled. see the default service configuration: FrameworkBundle/Resources/config/esi.xml @th

Re: [symfony-devs] Re: RFC: Tagging releases

2011-04-01 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > In the mean time if you dont want to live on the edge use submodules or a > self maintained fork. you can also edit bin/vendors.sh script and add the exact revision number you know to work to not have updates by accident. just add the git hash as 3

Re: [symfony-devs][symfony2]Validator could be better?

2011-03-26 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 for exceptions people who do not read docs could just forget error handling and confuse themselves or their clients. Am 25.03.2011 18:28, schrieb Mark C: > Hi all, > > Just want some opinions on whether the validator should throw an > exception

Re: [symfony-devs] Re: Cache Problems: Shell vs Webserver Rights

2011-03-25 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could also run the commands with sudo -u www-data ... or have a console where you "sudo su www-data" and then run the commands as user www-data. this way, you won't have to retype your password if you repeat the command after a longer idle time. c

Re: [symfony-devs] Conditional layout

2011-03-12 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi robert, maybe you could push the job of deciding whether there are sidebars to the controler? then the controler can set a variable in the call to twig and you can just check the value in twig. this would keep out logic from the template. or you c

[symfony-devs] namespace naming guidelines?

2011-03-10 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, are there any naming / namespacing guidelines regarding the structure of a bundle? a current example that is not evident from looking at other modules: for the cmf, we will create a couple of bundles that will have some functionality that does not