[FLOW3-general] Using Flow with legacy code
Robert Lemke
robert at typo3.org
Mon Oct 29 10:44:23 CET 2012
Hi Andrew,
On 27.10.2012, at 15:42, Andrew Leschinsky <andrew at leschinsky.com> wrote:
> I started a new job, and what they have is a bunch of legacy code - most of
> it not object-oriented, they have html, css, javascript, php and sql all in
> one file )) My job is to slowly by slowly refactor it, bring it under test
> etc.
>
> I really want to use Flow in my work - is it even possible to pull Flow
> into the mix? How would you approach that?
As long as Flow is in charge of handling the request / response chain, it sounds pretty
realistic to include legacy code. With custom Request Handlers you should be able
to include about anything and the next step would be to create action controllers which
provide a nice facade to the outside world but include legacy PHP files internally.
First goal would be to create a clean API / facade to the outside and try to establish a
plan for an improved structure.
Cheers,
Robert
--
Robert Lemke
Lead Developer TYPO3 Neos and TYPO3 Flow
Co-Founder TYPO3 Association
Blog: robertlemke.com/blog
Get involved: typo3.org – flow.typo3.org – neos.typo3.org
More information about the FLOW3-general
mailing list