From: Patrick M. <pat...@gm...> - 2008-04-01 23:20:28
|
In DiscoveryService.php, you can change the $this->_omit array around line 15 to add exclude folders. So for example: $this->_omit = array('.svn'); I had put that in specifically for that reason. IMHO I don't recommend changing the organization of your folders in /services to conform to amfphp's expectation. Rather, amfphp should conform to your specific needs. I would recommend having having a smart default for hidden folders by default in the next version of amfphp. Patrick On Tue, Apr 1, 2008 at 7:03 PM, D S <daz...@gm...> wrote: > Hi Jhonny, > > I can understand why you'd like to keep everything under one project > folder but the services folder still doesn't seem the right place for > classes which aren't services. We use something like: > > /MyProject/services/MyProject/MyService.php > /MyProject/wsClasses/* > /MyProject/library/ > > I know having the two MyProject folders is potentially confusing but > instead of the second MyProject name, we generally have a more complete > package structure which matches our Flex/Flash package structure anyway, > such as: > > /MyProject/services/com/CompanyDomainName/MyProject/MyService.php > > We use the same amfphp installation in all our projects. It resides in our > PHP includes directory so /MyProject/gateway.php (which is identical for > each project) looks like: > > <?php > try > { > require_once "/amfphp/gateway.php"; > } > catch (Exception $e) > { > error_log($e); > } > ?> > > Hope this helps, > Darren. > > On 02/04/2008, Jhonny Everson <eve...@ao...> wrote: > > > > These are both good solutions. Thanks. Just one problem however. We may > > have a lot of different projects, sometimes with different teams that we > > would liket to deploy under de same amfphp installation. It's all part of a > > bigger project. So I was thinking more of a solution that could use inside > > the project folder. So if amfphp does not implement it, maybe that could be > > a thing to add to the to-do list. I want to ignore that because the project > > is becoming large and the amfphp browser takes to much time to parse all > > unnecessary files and sometimes it timeouts. I have made ServiceBrowser > > ignore some folders ( like .svn) by hand to solve this issue. > > > > Thanks Arnold and Aaron. > > > > On 4/1/08, Wade Arnold <Wad...@t8...> wrote: > > > > > > Another way! > > > > > > Make services/* your svn repository. > > > > > > Change in globals.php > > > > > > $servicesPath = "services/MyProject/wsClasses/"; > > > > > > And then use the rest of the /services/myproject/ directory to place > > > the > > > rest of your utility classes that you don't want consumed by amfphp. > > > > > > > > > Wade Arnold > > > > > > > > > > > > > > > -----Original Message----- > > > From: amf...@li... > > > [mailto:amf...@li...] On Behalf Of > > > Aaron > > > Smith > > > Sent: Tuesday, April 01, 2008 1:41 AM > > > To: amf...@li... > > > Subject: Re: [amfphp] Ignore classes under services folder > > > > > > > > > Usually you want to put the support PHP for services (not accessible > > > to services) outside of the services folder, then in your actual > > > service php files, just require_once them so you have them available. > > > > > > so maybe like: > > > > > > /phplib/* > > > /amfphp/services/MyProject/ > > > > > > Then you can require stuff from phplib as needed. > > > > > > -Aaron > > > > > > On 3/31/08, Jhonny Everson <khr...@gm...> wrote: > > > > Hello guys, > > > > > > > > Is there a way to allow access to a specific class and deny direct > > > access to > > > > other, so it will not even be listed on amfphp/browser. > > > > > > > > Here's my amfphp/services simplified structure: > > > > > > > > /services/ > > > > /services/MyProject/MyService.php ( with a lot of functions, that > > > act > > > like a > > > > webservice) > > > > /services/MyProject/wsClasses/* ( lots of classes that actually do > > > the > > > job) > > > > /services/MyProject/library/ > > > > > > > > I only want to allow access to MyService methods, and "hide" the > > > remainder. > > > > Is that possible? or there a simpler way? > > > > > > > > Thanks > > > > -- > > > > Jhonny Everson > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > - > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp > > > lace > > > _______________________________________________ > > > amfphp-general mailing list > > > amf...@li... > > > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > amfphp-general mailing list > > > amf...@li... > > > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > > > > > > > > > > -- > > Jhonny Everson > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > amfphp-general mailing list > > amf...@li... > > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > amfphp-general mailing list > amf...@li... > https://lists.sourceforge.net/lists/listinfo/amfphp-general > > |