Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File/Class Structure for "Components" #87

Closed
mbabker opened this issue Apr 18, 2013 · 4 comments
Closed

File/Class Structure for "Components" #87

mbabker opened this issue Apr 18, 2013 · 4 comments
Milestone

Comments

@mbabker
Copy link
Contributor

mbabker commented Apr 18, 2013

The Platform version of the application reused the tried and true method of components as they're known in the CMS. Obviously, that goes out the window with the reboot. So, we have to figure out how to handle what we've been using as components. Some points to consider:

  • The routing system needs to be able to find the code
    -- If we use the Framework Router, the components will have to share a common prefix, so they'll be in a common namespace. I'm thinking they'll be in the Joomla\Tracker\ namespace but I'm not sure what to call them. Components, Services, Apps?
  • Site/Admin applications
    -- The CMS has its two applications. Aside from highly customizing com_categories, there really hasn't been an admin application built for the tracker. Do we leave it this way, or do we develop it? This further complicates the file structure a bit as we'd have to consider the namespacing so we don't get conflicting class names as the entire file/class structure will be in the autoloader.
@realityking
Copy link

IMO a tracker doesn't need a separate admin application. The couple of views you wouldn't need regular users to access can be easily integrated into the main app.

@mbabker
Copy link
Contributor Author

mbabker commented Apr 18, 2013

I've been leaning towards the single app approach (we only touched admin to manage some fields, well, that's all that's been developed so far). Thought I'd throw that point out there just to validate thinking. So, just need one application and ensure that our ACL system can handle ensuring users don't get to places we don't want them to be. That part's answered.

So, back to the structuring part. I still don't know what to call these things other than components (it sticks with me, guess it's a Joomla thing). I'm tempted to just end this debate and put that code in the Joomla\Tracker\Components namespace and move on to building the router.

@b2z
Copy link
Member

b2z commented Apr 19, 2013

Imo it is not a key thing to debate much. "Apps" inside App will confuse. "Services" are good, but there could be a confusion with the Web Services? If we consider that these will be implemented in Web Services manner, then I would stick with "Services". Otherwise "Components" would be the best name.

@mbabker
Copy link
Contributor Author

mbabker commented Apr 20, 2013

Components it is then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants